Custom Data in Object Container [SOLVED]

On 02/05/2015 at 14:40, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   14-16 
Platform:   Windows  ; Mac  ;  Mac OSX  ; 
Language(s) :     C++  ;   PYTHON  ;

I want to store some data for a tool plugin with objects. The object container would be perfect for this.

I think we are allowed to use our plugin ID as container id where we put data. Can you confirm?

e.g. BaseContainer bc = FillContainerWithMyStuff();
obj->GetDataInstance()->SetContainer(MY_PLUGIN_ID, bc);

I tried to use a tag but it is not as cool because it creates a warning and unknown tag symbols when the scene file is read without the plugin.

P.S. I have no control over the object. It should work with any object type.

On 03/05/2015 at 05:42, xxxxxxxx wrote:

yep, that is valid.

On 04/05/2015 at 04:57, xxxxxxxx wrote:

Great! Thanks, Samir.

On 04/05/2015 at 17:15, xxxxxxxx wrote:


I'll tag this topic as solved, but will leave it open for any relevant follow up posts.

Joey Gaspe
SDK Support Engineer