Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / SDK / How to get value stored in a subanim with no controller?
  RSS 2.0 ATOM  

How to get value stored in a subanim with no controller?
Rate this thread
 
37685
 
Permlink of this thread  
avatar
  • RenaudLL
  • Posted: 11 December 2009 08:23 AM
  • Total Posts: 5
  • Joined: 19 August 2009 09:44 AM

I’ve made a script that collect recursivly the animation of each controllers of nodes.

Let’s say the current subanim is pCurSubAnim.

SubAnimpCurSubAnim;

I can get is controller like this:

ControlpCurController (Control*)pCurSubAnim;

I can get the current value of the controller like this:

pCurController->GetValue(GetCOREInterface()->GetTime(), &mValueFOREVER)

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



Replies: 0