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

    How can I get to P2P links?

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 566 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 26/06/2006 at 05:45, xxxxxxxx wrote:

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

      ---------
      Anyone know how to get to the links in a P2P library object?  I want to be able to point to a saved pose, but don't know how to find it.
      Thanks for any help!

      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 26/06/2006 at 18:55, xxxxxxxx wrote:

        Ok I am going to try and be more specific and give an ex:
        In document A I have a pose library track with a key (FromKey).  I want to take that key and move it to a pose library track in document B.  My problem here is that I lose the BaseLink in the key once its transfered.  All of this is assuming that the objects are identical of course.  Below is an example:
        //At this point in time I am in document A
        AutoAlloc<AliasTrans> trans;
        static const LONG CLONE_FLAGS = 0;
        if (!trans->Init(Doc(A)))
           GePrint("Error");

        BaseKey* clone = static_cast<BaseKey*> (FromKey->GetClone(0, trans ));
        clone->SetTime(time);
        Doc_B_SEQ->InsertKey(clone); // Sequence from document B
        trans->Translate(TRUE);
        /* From this point on I would expect the BaseLink in clone to be the same as FromKey, but its not.  Any ideas on why? */
        // If I do this then test contains the link I want
        BaseList2D *test = FromKey->GetData().GetBaseLink(10001)->ForceGetLink();
        // This list is empty
        BaseList2D *clonetest = clone->GetData().GetBaseLink(10001)->ForceGetLink();
         
        Any and all help is appreciated!

        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 26/06/2006 at 23:30, xxxxxxxx wrote:

          The reason this doesn't work is that BaseLinks and AliasTrans only work within a single document. CINEMA 4D doesn't know which object in document B that corresponds to a certain object in document A (i.e. there is no such thing as "identical" objects in two different documents, they are only similar). You will have to implement your own translation of these links using for example names and hierarchies to determine the identity relations.

          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 27/06/2006 at 04:36, xxxxxxxx wrote:

            Thanks Mikael, but how do you find the links in a P2P library.  What I mean is when you look into the P2P Manager you have all of these saved poses.  Are they saved in the object itself or somewhere else.  I couldn't find any example of this.  I found the link to an individual pose from looking at a key.  But as you said since no two objects are identical, I need to find the P2P pose links in order to fill in the link in the keyframe.
            Thanks again!

            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 27/06/2006 at 04:58, xxxxxxxx wrote:

              Unfortunately this information does not seem to be accessible. I assume that they are stored in the P2P library, but there's no interface to it. I will ask the developers if there's a hack to access them anyway.

              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 27/06/2006 at 08:25, xxxxxxxx wrote:

                Oh ok, well I appreciate you asking for me.  I hope there is a way, but if not understood.
                Thanks again for replying so quickly!

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

                  Unfortunately it's not possible to access the information at the moment. Sorry for the inconvenience.

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