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® / Python / How to set FBHandle 'Follow' property?
  RSS 2.0 ATOM  

How to set FBHandle 'Follow' property?
Rate this thread
 
62855
 
Permlink of this thread  
avatar
  • Total Posts: 3
  • Joined: 15 December 2011 02:15 AM

Hello all

I use a working fine generic code to access properties:

def UT_PropertySet(lClasslComponentlPropertylValue):
   for 
component in FBSystem().Scene.Components:
      if 
component.Name == lComponent and component.ClassName() == lClass:
         
component.PropertyList.Find(lProperty).Data lValue

#sample
UT_PropertySet('FBCharacter''ZU''Realistic Shoulder Solving'60)
UT_PropertySet('FBHandle''LeftEye_Hdl''Display Link'0)

Las, some properties cannot be accessed such as FBHandle’s ‘Follow’, ‘Manipulate’ or ‘Manipulate Translation’.
Does anyone know how to set these kind of list properties?



Replies: 1
/userdata/avatar/ejg2f56nr.gif

Self answer: use following code

lHandle.Follow.append(lComponent)

Author: (:jpjoannes

Replied: 15 December 2011 09:10 PM  
avatar

Self reply. Use following code:

lHandle.Follow.append(lComponent)


Replies: 0