Motionbuilder Tip: How to print out property fields
admin 0 MotionbuilderScriptingSimple code to print out the property fields of selected models…
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from pyfbsdk import FBModelList, FBGetSelectedModels, FBPropertyManager def PrintProperty( pModel ): lPropMgr = pModel.PropertyList for lProp in lPropMgr: print lProp.GetName() lModelList = FBModelList() # Get the selected models. FBGetSelectedModels( lModelList ) for lModel in lModelList: PrintProperty(lModel) # Cleanup. del( lModelList, PrintProperty ) del(FBModelList, FBGetSelectedModels,FBPropertyManager) |