Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    hide description of TextureTag on drag & drop

    SDK Help
    0
    3
    327
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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;
      		} 
      
      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

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

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post