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
    • Recent
    • Tags
    • Users
    • Login

    BaseContainers and user data

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 293 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 23/08/2009 at 06:52, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;  C++  ;

      ---------
      Hi all,

      This is a topic I've been avoiding for too long and now I have to sink my teeth into it. I'm having trouble just listing what's inside baseContainers. Is there a simple way to get a list of the different values a baseContainer holds in COFFEE? Or is that something that has to be done in the SDK?

      My other question is, how does one add and set user data in COFFEE? I thought it would be something inside of a baseContainer but I can't figure that out either. I've noticed that simple values can be set using the #USER_DATA:number indicator in COFFEE but only after you've added that to the object through the UI; I need to be able to add Link attributes from script.

      Thanks in advance.

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 24/08/2009 at 01:00, xxxxxxxx wrote:

        To browse through a container you can something like this:

        > \> var op = doc->GetActiveObject(); \> var bc = op->GetContainer(); \> \> var i = 0; \> while (bc->GetIndexId(i) != NOTOK) \> { \>      println(bc->GetIndexData(i)); \>      i++; \> } \>

        As for your second question, it is not possible to add user data with COFFEE.

        cheers,
        Matthias

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