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;
}