Notifications
Clear all
[Closed] Mixing Biped Animations
Mar 04, 2018 8:33 am
I used Mixer to append two animations, When I do this in UI, everything works well, But when I do it with code, result in not the same:
clearlistener()
CurrentFolder = getFilenamePath (getSourceFileName())
loadmaxfile (CurrentFolder + "Max.max") quiet:true
FileA = CurrentFolder + "walk.bip"
FileB = CurrentFolder + "Jump.bip"
COM = $Bip001.transform.controller
Mxr = COM.mixer
appendTrackgroup Mxr
TrackID = Mxr.numTrackgroups
TrackGroup = getTrackgroup Mxr TrackID
Track = gettrack TrackGroup 1
Track.tracktype = #transtrack
appendClip Track FileA false 0f
appendClip Track FileB false 0f
mixdown Mxr false true 6 true 166.158
copyMixdownToBiped Mxr
deleteTrackgroup Mxr TrackID