Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / animation starts AFTER my code finishes?
  RSS 2.0 ATOM  

animation starts AFTER my code finishes?
Rate this thread
 
8394
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 30
  • Joined: 03 December 2007 09:18 PM

I want to move some objects around as I’m calculating some raytrace intersections.

I setup a simple keyframe animation.  Then I run my command, which has a

MAnimControl::playForward();

followed by a bunch of other code.

The thing is, the code finishes running, THEN the objects move around!! Is there a way to force the motion to happen right away, as the code is running?

Thanks,

Dave



Replies: 0
avatar

I ended up doing this:
MAnimControl::setCurrentTime(timeCurrentTime);
M3dView::active3dView().refresh(true,true);

and incrementing the time manually. Using MAnimControl::playForward(); didn’t seem to refresh even with M3dView::active3dView().refresh(true,true);

Hopefully someone else will find this useful!



Replies: 0




   
  Settings Choose Theme color: