Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 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
  • Kathryn
  • Posted: 07 February 2010 10:22 PM
  • Total Posts: 26
  • Joined: 21 October 2009 11:43 AM

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 06:21 AM

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.jpg

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: Kathryn

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

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



Replies: 0




   
  Settings Choose Theme color: