Adding dynamic attributes to plugins.ObjectData

On 02/08/2013 at 07:16, xxxxxxxx wrote:

I'm trying to work out a way to dynamically add Link Boxes to an Object Plugin.

Is this even possible, I've had no luck so far - i guess i'm looking for an AddCustomGUI alternative but I know that is reserved for the CommandData plugin


On 02/08/2013 at 08:14, xxxxxxxx wrote:

No this doesn't work for an object plugin. Thet GetDDescription() method from C++ which would allow
you to do this is not implemented in Python. You can use userdata alternatively. See
GetUserDataContainer() and SetUserDataContainer() of the BaseList2D class.

On 02/08/2013 at 08:22, xxxxxxxx wrote:

Thanks Niklas, only reason I'm doing it this way is I want the values of the linkboxes preserved with the c4d document without going into saving extra files.