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

    store container in tag container

    Scheduled Pinned Locked Moved SDK Help
    9 Posts 0 Posters 718 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 24/08/2008 at 07:37, xxxxxxxx wrote:

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

      ---------
      Hello all,
      after a lot of serch, i don't understand if and how is possible store a container in a tag container.
      in particular in my tagplugin i have a baselist2d link and i want to store the linked element container in my tag container.
      can anyone help me ?
      thanks
      Franz

      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/2008 at 09:22, xxxxxxxx wrote:

        Get a unique plugin ID to use for the sub container and then do this:

        tagBC->SetContainer(ID_MASTERSLAVE, mbc);

        where 'mbc' is the linked element container. You'll need to get tagBC from the tag using:

        BaseContainer* tagBC = myTag->GetDataInstance();

        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/2008 at 10:49, xxxxxxxx wrote:

          Thank you Robert,
          i'll try tonight 😉
          thanks a lot
          Franz

          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/2008 at 13:18, xxxxxxxx wrote:

            ok,
            now my code is :

            BaseContainer * Tdata = tag->GetDataInstance();
            BaseList2D* item = Tdata->GetLink(IDC_TTAKEOVER_ITEM,doc,0);
            BaseContainer *itembc = item->GetDataInstance();
            Tdata->SetContainer(ID_SUB,itembc);
            But, compiler tel me :
            'BaseContainer::SetContainer' : cannot convert parameter 2 from 'BaseContainer *' to 'const BaseContainer &'
            sorry i know i am a beginner 😞
            Thanks
            Franz

            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/2008 at 14:41, xxxxxxxx wrote:

              hello all,
              ok i find my error, * befor item in set container.
              Thanks for help
              Franz

              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/2008 at 16:19, xxxxxxxx wrote:

                Yes, that was it. 🙂

                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 25/08/2008 at 00:41, xxxxxxxx wrote:

                  ok now i have a new question 🙂
                  I read that some object in Cinema Don't store data in container (for example Olight), and i must to use Get/SetParameter to work with this object.
                  Is there a way to collect all parameter of an object or i shoul to get/setParameter for each of this?
                  Thanks
                  Franz

                  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 25/08/2008 at 00:50, xxxxxxxx wrote:

                    I am not sure what you mean with collecting all paramters.

                    cheers,
                    Matthias

                    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 25/08/2008 at 00:59, xxxxxxxx wrote:

                      hello Matthias,
                      Sorry My english is not very good.
                      If Object use container i can copy all parametre with CopyTo function to another object or tag.
                      My question is can i make somthink like this with Object like light or i must to set evry sigle parameter?
                      Thanks a Lot
                      Franz

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