It tells me
AttributeError: 'FBTake' object has no attribute 'PlotTakeOnObjects'
I had the same issue when trying to use "PlotAllTakesOnProperties". Only method i could use was "PlotAllTakesOnSelectedProperties".
But then i couldn't manage to get all properties selected with this code :
gplot = FBPlotOptions () gplot.PlotPeriod = FBTime(0,0,0,1) modelList = FBModelList () FBGetSelectedModels (modelList, None, True) for model in modelList: propList = model.PropertyList for prop in propList: prop.Selected = True prop.SetFocus(True) FBSystem().CurrentTake.PlotAllTakesOnSelectedProperties(gplot.PlotPeriod)
Neither
prop.Selected = True
or
prop.SetFocus(True)
worked =/
Ok so my previous code didn't return me any model cause no model were selected, so i replaced it with
for model in FBSystem().Scene.RootModel.Children:
Now i get all the models i'm interested in but still none of prop.Selected = True or prop.SetFocus(True) works.
And i just found out that i can't use PlotAllTakesOnProperties because this function is not present in motionbuilder 2013 (that i'm using) and i was reading the 2014 motionbuilder documentation =(
Hi,
I've tried this code and it seems to work fine (Mobu 2013 SP2). You don't need to set the focus on the property you want to plot, the selected attribute is enough, SetFocus just highlight the property in the property editor GUI.
from pyfbsdk import * gplot = FBPlotOptions () gplot.PlotPeriod = FBTime(0,0,0,1) modelList = FBModelList () FBGetSelectedModels (modelList, None, True) for model in modelList: propList = model.PropertyList for prop in propList: prop.Selected = True FBSystem().CurrentTake.PlotAllTakesOnSelectedProperties(gplot.PlotPeriod)
Cheers
Can't find what you're looking for? Ask the community or share your knowledge.