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

    Custom Data in Object Container [SOLVED]

    SDK Help
    0
    4
    392
    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 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.

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

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

        yep, that is valid.

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

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

          Great! Thanks, Samir.

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

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

            Hi,

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

            Joey Gaspe
            SDK Support Engineer

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