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!