Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Autodesk MotionBuilder 2009 / They shuffled the FBPropertyType.kFBPT_String in 2009
  RSS 2.0 ATOM  

They shuffled the FBPropertyType.kFBPT_String in 2009
Rate this thread
 
20093
 
Permlink of this thread  
avatar
  • gabester
  • Posted: 07 December 2008 05:46 PM
  • Total Posts: 30
  • Joined: 02 September 2008 02:02 PM

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" ,FalseTrue)

And got the following error:

Traceback (most recent call last):
  
File "D:/NRL/art/techart/Scripts/Python/ExportRanges.py"line 372in <module>
    
exportcharacter (exportsettings)
  
File "D:/NRL/art/techart/Scripts/Python/ExportRanges.py"line 293in exportcharacter
    hipsparent
.PropertyCreate("mobuworkingfile&"FBPropertyType.kFBPT_String"string" ,FalseTrue)
AttributeErrortype object 'FBPropertyType' has no attribute 'kFBPT_String'


Replies: 0
avatar
  • KxL
  • Posted: 08 December 2008 12:48 AM

This should work:

PropertyCreate("PropName",FBPropertyType.kFBPT_charptr,"Charptr",False,True,None)


Replies: 0
avatar
  • gabester
  • Posted: 08 December 2008 07:50 PM

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)



Replies: 0
avatar
  • KxL
  • Posted: 09 December 2008 12:55 AM

Lets try this one:

lNewProperty lModel.PropertyCreate("PropName",FBPropertyType.kFBPT_charptr,"Charptr",False,True,None
lNewProperty.Data FBApplication().FBXFileName


Replies: 0