Next Generation Digital Entertainment Creation Software
Create the future with Autodesk 3ds Max 2011 and Autodesk Maya 2011 software.
  • 1/3
You are here:Forum Home / Autodesk® MotionBuilder® / Python / Marker Settings Issue
  RSS 2.0 ATOM  

Marker Settings Issue
Rate this thread
 
39538
 
Permlink of this thread   Subscribe to this thread
avatar
  • Koneko
  • Posted: 08 February 2010 06:22 AM
  • Total Posts: 23
  • Joined: 2009-10-21 15:43:29

Hi,

I am trying to create a custom handle for “Look” under Marker Settings of a Control Rig (i dont think there is a MB Python function for this?).

However, python can’t seem to find it, it always returns ‘not found’.  I also tried this with the “ResLevel” property and “Show Label” property. It found showlabel, but not reslevel - im thinking this has something to do with pull down options as both ‘Look’ and ‘ResLevel’ have them.

Does anyone have any ideas on what I may be doing wrong?

This was my Script:

hipEff = FBFindModelByName("HipsEffector")
hipEff.Selected = True

propMan = hipEff.PropertyList
customProp = propMan.Find("Look")
if customProp:
print"found"
else:
print"not found”

#print customProp.Data
#customProp.Data = 1

Cheers,
Kathryn



Replies: 0
avatar
  • _stev_
  • Posted: 08 February 2010 02:21 PM

You can access the Look property of an FBModelMarker through the python object without using the PropertyList:

hipEff FBFindModelByName("HipsEffector")
hipEff
.Look FBMarkerLook.kFBMarkerLookHardCross
hipEff
.Look FBMarkerLook.kFBMarkerLookCube
hipEff
.Look FBMarkerLook.kFBMarkerLookSphere
hipEff
.Look FBMarkerLook.kFBMarkerLookCapsule

It is odd though that the PropertyList isn’t working for you, it should still return the correct property.  What version are you using?

Stev



Replies: 1
/userdata/avatar/6p95f2cda_blueprincess.png

Doh. I was sure i searched the Python Help for existing functions...obviously didn’t search hard enough!

Thanks for redirecting me!

You’re right though… it should still be found through PropertyList… I am using MB 2010

Author: Koneko

Replied: 09 February 2010 10:20 AM  
avatar
  • _stev_
  • Posted: 09 February 2010 02:14 PM

Ah, I’m still in 2009, so maybe it was removed from the ProperyManager.



Replies: 0




   
  Settings Choose Theme color: