|
Hello all
I use a working fine generic code to access properties:
def UT_PropertySet(lClass, lComponent, lProperty, lValue):
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?
|
|
|
|
Self reply. Use following code:
lHandle.Follow.append(lComponent)
|
|
|