View Full Version : Get biped leg/foot states???

02 February 2012, 09:37 PM
Okay, this seems like something that should be pretty easy to do, but after hours combing through the reference and the internet I have for some reason been unable to find what I need.

All I want is a script that will go through my timeline, and find the frames on which the biped's leg states are planted vs moving. There are fairly simple methods for setting planted, sliding, or free keys, but I have been totally unable to find a way to make it look for what kind of keys are already in place!

02 February 2012, 04:04 AM
I've come up with the following as a workaround:

step = $'Bip01 Footsteps'
step_Ctrl = step.controller

stepArray = #()

for s = 1 to (numKeys step_Ctrl) do
stepKey = biped.getKey step_Ctrl s
stepSide = stepKey.side

stepStartTime = stepKey.time
stepDuration = stepKey.duration
stepEndTime = stepKey.time + stepKey.duration

stepData = #(stepSide, stepStartTime, stepEndTime)
append stepArray stepData

CGTalk Moderation
02 February 2012, 04:04 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.