A property is a holder for function callbacks into the internals of MotionBuilder.
A property is a container for callback functions that inherit from the FBProperty class. Most objects in MotionBuilder contain
properties instead of variables. They exist in various forms, each form representing a data type that the property is representing.
You cannot instantiate FBProperty objects. To reference a property:
- Use an instance of an FBComponent object. The methods FBComponent::PropertyCreate and FBComponent::PropertyRemove can be used
to modify an object's set of properties. When accessing a FBProperty object via its containing object, you can get or set
(assuming it is not read-only) its value directly: myObject.Visibility = True.
- FBPropertyManager exists in all FBComponent objects and contains an array of all the registered properties. Use FBProperty::Find to find a property by name. When accessing a property reference directly, you can get its value via it's 'Data' member.
myProp = myObject.PropertyList.Find( 'Visibility' )
if myProp: myProp.Data = True