Thank you @ferdinand,
sorry for interrupting you again but it's not working with my own NodeData
plugin. I managed to create an ObjectData
plugin however I'm not able to show the description that is allocated to my plugin. It works perfectly fine when I use the preferences node (like in your example) instead of my own ObjectData
plugin. Here is my minimalistic implementation:
Plugin registration:
plugins.RegisterObjectPlugin(
id=1058006,
info=c4d.PLUGINFLAG_HIDEPLUGINMENU,
str="tsplineobj",
icon=load_icon('res/icon.tif'),
g=tspline.Tspline,
description="tsplineobj"
)
Tspline tag:
class Tspline(c4d.plugins.ObjectData):
def Init(self, node):
return True
The custom GUI:
def CreateLayout(self):
self.GroupBegin(id=1100, flags=c4d.BFH_FIT)
bc = c4d.BaseContainer()
bc[c4d.DESCRIPTION_OBJECTSNOTINDOC] = True
spline_gui = self.AddCustomGui(
id=423424,
pluginid=c4d.CUSTOMGUI_DESCRIPTION,
name="Spline",
flags=c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT,
minw=600,
minh=200,
customdata=bc
)
spline_obj = c4d.BaseObject(1058006)
spline_gui.SetObject(spline_obj)
self.GroupEnd()
return True
the res file:
CONTAINER tsplineobj
{
NAME tsplineobj;
GROUP
{
SPLINE MY_SPLINE { }
STATICTEXT TEST
{
SCALE_H;
}
}
}
Is there anything I missed to implement?
Thank you for your time
-robkom