-
MoBu script: Pose shots
Posted on 17 December 2009 Neill 2 commentsAnother 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
MotionBuilder Python, Script, Tool, UI2 Responses to “MoBu script: Pose shots”
-
Great!
All these scripts & toola make the MoBu animator life so much easier!
Many thanks!!
-
Thank you for feedback!
Leave a Reply
You must be logged in to post a comment.
-


English
Russian
Recent Comments