|
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
|
|
|
|
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!
|
|
|