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

    Container question

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 253 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 14/07/2006 at 07:16, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.6 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi.
       I have made the jump to c++ 9.6  from c.o.f.f.e.e. 8.1 . 
      Containers are handled very differently....so just a quick question...
       
      If you add your own item to an objects container... **e.g.      ****  dat- >SetLong(MY_ID, 55);** **.... is that it?** I know it works, but should you do anything else afterwards? Should the object send a message or something? Also, if you add an item to a Basedocuments container, is the above method all that is needed ...?
      thanks for any info....
      Tony.

      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 14/07/2006 at 10:11, xxxxxxxx wrote:

        If your own item in the BaseContainer causes changes to the object that need to be reflected in the editor (or during render), directly or indirectly, best to send object->Message(MSG_UPDATE); so that the BaseContainer changes are acted upon.

        Yes, you don't need to do anything else to the BaseContainer if you are using object->GetDataInstance(). Then you are setting values directly to the BaseContainer. If you use object->GetData() instead, you will need to call object->SetData() afterwards in order to store the changes to the 'real' BaseContainer as GetData() only returns a copy - not a pointer to the 'real' BaseContainer.

        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 14/07/2006 at 10:54, xxxxxxxx wrote:

          Ah...
          Some things in the sdk  need a simple explanation like that...
          OK thanks a lot mate.

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