Notifications
Clear all

[Closed] RedrawView on Biped

Hi,

I managed to key frame through a Utility-Plugin the fingers of a Biped using MotionCapture data to see how it works. Oddly I can’t seem to Update the movement using RedrawViews() even with ForceCompleteRedraw() . Ive tried EvalWorldState() InvalidateWS() InvalidateTM() recommended in the helpSDK.

I can see the key frames have been created and they have the correct values.
If I save the project and re-open it then the movement is fine, its kind of a pain. Id rather it update during the key-creattion so I can modify it further.

Any clue?

3 Replies

if you can see the new value in the viewport scrolling the timeslider, you can update it inside your code with a “sliderTime +0” sentece.

Thanks… I looked up that command, and I should indicate I am programming in C++. That command has the equivelent of SetTime() C++ as sliderTime in maxscript it seems (SetTime() ussually works, but does not in this case) So i though I might be an issue with with writing keyframes directly to a Biped node… Is there a special update method for bipeds?

In maxscript I would try with this:

redrawViews()
 sliderTime +0f

BEFORE the new keys creation. May be with:

biped.setTransform bipNode #pos TM.translationpart true
 biped.setTransform bipNode #rotation TM.rotationpart true 

or the method you use to create the keyframes.