hide description of TextureTag on drag & drop



  • On 18/05/2015 at 04:14, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   15+ 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    I got my MaterialData plugin, I'm trying to change how the created texture tag description should appear.

    so I have one of the 2 options "any one should be ok":
    1- subclass TextureTag, don't know how!! "this is the cleaner solution"
    2- hide some of TextureTag description.

    don't know what am I missing/doing wrong here.

      
    		case MSG_MATERIALDRAGANDDROP:
    		{
    			BaseMaterial* mat = static_cast<BaseMaterial*>(node);
    			MaterialDragAndDrop* mdd = static_cast<MaterialDragAndDrop*>(data);
    			mdd->result = mdd->op->MakeTag(Ttexture);
      
    			BaseContainer *data = mdd->result->GetDataInstance();
    			BaseContainer tm = data->GetContainer(TEXTURETAG_PROJECTION);
    			tm.SetBool(DESC_HIDE,TRUE);
      
    			mdd->result->SetParameter(TEXTURETAG_MATERIAL, mat, DESCFLAGS_SET_0);
    			//mdd->result->SetParameter(TEXTURETAG_PROJECTION, TEXTURETAG_PROJECTION_UVW, DESCFLAGS_SET_0);
    			break;
    		} 
    


  • On 18/05/2015 at 08:45, xxxxxxxx wrote:

    Hello,

    if I understand correctly you want to change the Description of a TextureTag? This is not possible. The texture tag alone defines how the Description it returns to the Attribute Manager looks like, nothing else can interfere with that.

    Also it is not possible to create an "own" texture tag by creating a subclass of TextureTag.

    Best wishes,
    Sebastian



  • On 18/05/2015 at 09:17, xxxxxxxx wrote:

    thanks Sebastian, consider this thread solved as there is no solution in this direction.


Log in to reply