poseshots

Another small but useful utility for five minutes using the UI Builder. The point is to create every N frames pose for a character.

Summary

All interface elements I arranged with the help of UI Builder, then added an event to button presses

startF = int(edtStart.Value)

stopF = int(edtStop.Value)

stepF = int(edtStep.Value)

time = FBTime()

lChar = FBApplication().CurrentCharacter

for i in range(startF, stopF, stepF):

time.SetTime(0,0,0, i)

FBPlayerControl().Goto(time)

FBSystem().Scene.Evaluate()

pose = FBCharacterPose( str(i) )

pose.CopyPose( lChar )

here I am taking the start of the range, the end of the range and the step. All values are specified in frames. Then do a loop and each next frame update scene by calling FBSystem (). Scene.Evaluate ()

The pose is created very simply – by calling the constructor FBCharacterPose (<name of the pose>) and method CopyPose

Download

uibuilder scene – poseshots

python script – poseshots

MoBu script: Pose shots
Tagged on:             

2 thoughts on “MoBu script: Pose shots

  • Thursday December 17th, 2009 at 05:10 PM
    Permalink

    Great!

    All these scripts & toola make the MoBu animator life so much easier!

    Many thanks!! :)

  • Thursday December 17th, 2009 at 11:39 PM
    Permalink

    Thank you for feedback!

Leave a Reply

Your email address will not be published. Required fields are marked *