Notifications
Clear all
[Closed] Need help with 3dsMax SDK, 3DXI, paramblocks
Page 2 / 2
Prev
Oct 28, 2006 4:00 am
Ok, I’ve just tried again and it works right. Keep in mind that in the line:
float percent = ParamBlockMngr::GetFloat(node->GetTMController()->GetPositionController(), _T("percent"));
the variable “node” is the object with the path constraint assigned. For example, if I create a sphere and assign to it a path constraint, the node should be the sphere…
Greets.
Oct 28, 2006 4:00 am
That is what i am doing, and for some reason that code is not working for me. I have no Idea why it would work for you and not me, unless we have different versions of the max SDK itself. However I did find a solution…
Animatable *anim = iNode->GetMaxNode()->GetTMController()->SubAnim(0)->SubAnim(1);
I am using IGame so i must get the max node from the IGameNode. However this works like a charm, when passed into the sample code you have above.
Thanks you greatly for all your help.
Page 2 / 2
Prev