PlotOption

PlotOption

Anonymous
Not applicable
1,700 Views
2 Replies
Message 1 of 3

PlotOption

Anonymous
Not applicable

Hi

 

How can I set the Plot rate in PlotOption to 60fps,30fps etc. using python?

 

PlotOption.jpg

 

Thank you in advance

 

Angelo

0 Likes
Accepted solutions (1)
1,701 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution

Hi Angelo,

Here's an example for plotting a character animation to the skeleton using a specific frame rate. You have to create a FBTimeMode class with an attribute that define the frame rate and pass it to the FBPlotOptions.PlotPeriod.

 

from pyfbsdk import *
fbSys = FBSystem()
fbScene = fbSys.Scene

 

#Get the first scene charcater
char = fbScene.Characters[0]

 

#Set the plot options
plotOptions = FBPlotOptions()


#Set the time mode
#See FBTimeMode() to get the list of all the available time mode
timeMode = FBTimeMode.kFBTimeMode24Frames

 

#Set the plot periode
plotOptions.PlotPeriod = FBTime(0,0,0,1,0,timeMode)

 

#Plot the character animation to the skeleton
plotDest = FBCharacterPlotWhere.kFBCharacterPlotOnSkeleton
char.PlotAnimation(plotDest, plotOptions)

 

Hope it will help you, cheers

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi

 

It worked! thanks this really help me 🙂

 

Cheers!

 

Angelo

0 Likes