THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/09/2008 at 08:12, xxxxxxxx wrote:
Howdy,
OK, this is the code in the TagData::Message() function where it receives the custom message to call the AutoKey() function:
> \> if(IsCommandEnabled(IDM_AUTOKEYS) && IsCommandChecked(IDM_AUTOKEYS)) \> { \> if(tData->GetBool(ADD_KEY)) \> { \> AutoAlloc<AliasTrans> trans; \> BaseTag \*tClone = (BaseTag\* )tag->GetClone(0,trans); \> if(tClone) \> { \> BaseContainer \*tcData = tClone->GetDataInstance(); \> if(tcData) \> { \> tcData->SetVector(TRANS_POS,tData->GetVector(OLD_POS)); \> tcData->SetVector(TRANS_SCA,tData->GetVector(OLD_SCA)); \> tcData->SetVector(TRANS_ROT,tData->GetVector(OLD_ROT)); \> \> doc->AutoKey(tClone,tag,FALSE,FALSE,FALSE,FALSE,IsCommandChecked(IDM_A\_PARAMETER),FALSE); \> } \> BaseTag::Free(tClone); \> } \> } \> } \>
I added GePrint() statements before and after setting the cloned tag's parameters to the old values like this:
> \> GePrint("before: TRANS_POS = "+VectorToString(tcData->GetVector(TRANS_POS)) \> +"; OLD_POS = "+VectorToString(tData->GetVector(OLD_POS))); \> tcData->SetVector(TRANS_POS,tData->GetVector(OLD_POS)); \> tcData->SetVector(TRANS_SCA,tData->GetVector(OLD_SCA)); \> tcData->SetVector(TRANS_ROT,tData->GetVector(OLD_ROT)); \> GePrint("before: TRANS_POS = "+VectorToString(tcData->GetVector(TRANS_POS)) \> +"; OLD_POS = "+VectorToString(tData->GetVector(OLD_POS))); \>
... and the values are printed correctly.
Everything works fine in R10, it sets the auto keys perfectly, but not in R11 (demo version). :o(
Adios,
Cactus Dan