|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
| They shuffled the FBPropertyType.kFBPT_String in 2009
|
|
|
Hey Guys,
The developers re-jigged the FBPropertyType.kFBPT_String in mobu 2009 and now I can’t get it to work.
That specific text doesn’t even exist in the help. Any idea why?
This is the example I tried to use:
hipsparent.PropertyCreate("mobuworkingfile&", FBPropertyType.kFBPT_String, "string" ,False, True)
And got the following error:
Traceback (most recent call last):
File "D:/NRL/art/techart/Scripts/Python/ExportRanges.py", line 372, in <module>
exportcharacter (exportsettings)
File "D:/NRL/art/techart/Scripts/Python/ExportRanges.py", line 293, in exportcharacter
hipsparent.PropertyCreate("mobuworkingfile&", FBPropertyType.kFBPT_String, "string" ,False, True) AttributeError: type object 'FBPropertyType' has no attribute 'kFBPT_String'
|
|
|
|
This should work:
PropertyCreate("PropName",FBPropertyType.kFBPT_charptr,"Charptr",False,True,None)
|
|
|
|
Thanks for the speedy reply. Any chance for 1 additional thing?
How do I set it’s data attribute? I’d like to set the data attribute to be the scenename.
hipsparent.PropertyCreate(’mobulocojoint&’, FBPropertyType.kFBPT_charptr , “Charptr”,False,True,None)
hipsproperty = hipsparent.PropertyList.Find(’mobulocojoint&’)
hipsproperty.Data = lApplication.FBXFileName
That doesn’t work, and neither does this:
hipsproperty.Data = str(lApplication.FBXFileName)
|
|
|
|
Lets try this one:
lNewProperty = lModel.PropertyCreate("PropName",FBPropertyType.kFBPT_charptr,"Charptr",False,True,None) lNewProperty.Data = FBApplication().FBXFileName
|
|
|
|
|
|