How can I get to P2P links?



  • 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!



  • 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!



  • 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.



  • 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!



  • 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.



  • 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!



  • 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.


Log in to reply