Scripted Biped Mixer not updating?

Scripted Biped Mixer not updating?

Anonymous
Not applicable
382 Views
1 Reply
Message 1 of 2

Scripted Biped Mixer not updating?

Anonymous
Not applicable
So I have a simple max script that creates a biped and then drops some bip files into a Mixer track. I have not figured out how to force the biped to "update" with my modified mixer. If I select the biped and open the mixer GUI then the biped gets updated and my mixer track works, but if I don't open the mixer, the biped just stands there. I've looked through the docs a dozen times and I can't seem to find any sort of update command... Am I blind, or is there no way to script the update? I don't want to have to open the mixer GUI every time my script makes a biped.

Help?


(
obj = biped.createNew 6.0 0.0
aMixer = obj.transform.controller.mixer
appendTrackgroup aMixer
aTrackGrp = getTrackGroup aMixer 1
aTrack = getTrack aTrackGrp 1
appendClip aTrack "c:\\Bip\\Jog01.bip" true 0
appendClip aTrack "c:\\Bip\\Jog01.bip" true 0
appendClip aTrack "c:\\Bip\\Jog01.bip" true 0
appendClip aTrack "c:\\Bip\\Jog01.bip" true 0
)


Thanks -Ray
0 Likes
383 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
So after many, many hours of fighting bipeds. (I really hate them, BTW) I figured out what I was missing. I needed to put the biped into Mixer Mode. I hope this helps someone else out there. Now to tackle the complicated part of my crowd simulation script.... sigh.


(
obj = biped.createNew 6.0 0.0
aBip = obj.transform.controller
aBip.mixerMode = true -- <<< I was missing this command !!
aMixer = aBip.mixer
appendTrackgroup aMixer
aTrackGrp = getTrackGroup aMixer 1
aTrack = getTrack aTrackGrp 1
appendClip aTrack "c:\\Bip\\Jog01.bip" true 0
appendClip aTrack "c:\\Bip\\Jog01.bip" true 0
appendClip aTrack "c:\\Bip\\Jog01.bip" true 0
appendClip aTrack "c:\\Bip\\Jog01.bip" true 0
)


-Ray
0 Likes