THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/03/2006 at 23:15, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.102
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
Time for a lesson about putting the horse before the cart...
My plugin imports Poser figures (etc.). Normally, you would import the figure and animate interactively or by applying animated poses to the figure after the fact. The animation tracks are stored on Dynamic Description Real sliders which keep unique indices. Easy-peazy.
Now answer me this: If the figure is already animated when being loaded, the Dynamic Descriptions don't really exist yet, do they? They are only created, it seems, when the actual object is selected and thus triggers a call to GetDDescription(). So, how to handle this?
If the DD doesn't yet exist, my code stores the animation keys for later application. But there is still required that kick in the pants to get GetDDescription() to create the darn things. I've found that ActiveObjectManager_SetObject() can be used, but it is not very pretty watching all of the objects cycle through the AM to create the DDs.
Is there an alternative?
Thanks,