|
I’ve made a script that collect recursivly the animation of each controllers of nodes.
Let’s say the current subanim is pCurSubAnim.
SubAnim* pCurSubAnim;
I can get is controller like this:
Control* pCurController = (Control*)pCurSubAnim;
I can get the current value of the controller like this:
pCurController->GetValue(GetCOREInterface()->GetTime(), &mValue, FOREVER)
However, how can I get the current value of an subanim (Animatable) that have no controller (Control)? I assume I can since it’s easily done in maxscript. The GetValue method exist only for Control objects so I can’t use it with Animatable. When I try to access the controller of thoses kind of subanims, I get a DUMMYCHANNEL_CLASS_ID controller. But calling GetValue from this kind of controller won’t work. Any idea?
Regards
|
|
|