FBProperty Class Reference

#include <mobu-python-api.h>

Class Description

Property: Base property class.

A property is a holder for function callbacks into the internals of the application. 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, for example in Python: 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, its value is obtained via its 'Data' member.

    myProp = myObject.PropertyList.Find( 'Visibility' )
    if myProp: myProp.Data = True

To see how to create a custom property in Python, see CustomProperty.py.

+ Inheritance diagram for FBProperty:

Public Member Functions

 __reduce__ ()
 
FBStringList GetEnumStringList (FBProperty arg1, object arg2)
 String list for enum properties. More...
 
str GetName (FBProperty arg1)
 Get the property's name. More...
 
 SetName (FBProperty arg1, str arg2)
 Set the property's name. More...
 
FBPropertyType GetPropertyType (FBProperty arg1)
 Get the property's type. More...
 
 ModifyPropertyFlag (FBProperty arg1, FBPropertyFlag arg2, object arg3)
 ModifyPropertyFlag. More...
 
int GetPropertyFlags (FBProperty arg1)
 GetPropertyFlags. More...
 
bool GetPropertyFlag (FBProperty arg1, FBPropertyFlag arg2)
 GetPropertyFlag. More...
 
str GetPropertyTypeName (FBProperty arg1)
 Get the property's type name. More...
 
str AsString (FBProperty arg1, FBDataAsStringFlag arg2)
 Get the property value as a string. More...
 
bool SetString (FBProperty arg1, str arg2)
 Set the property value from a string. More...
 
str OriValueAsString (FBProperty arg1)
 Get the property original value (before any modification) as string. More...
 
bool IsAnimatable (FBProperty arg1)
 
bool IsInternal (FBProperty arg1)
 
bool IsList (FBProperty arg1)
 Verify if property is of this type. More...
 
bool IsObjectList (FBProperty arg1)
 Indicate if is an instance of FBPropertyListObject. More...
 
bool IsReadOnly (FBProperty arg1)
 Is property read-only? More...
 
bool IsMinClamp (FBProperty arg1)
 Indicate if minimum value clamping will be applied on user input value. More...
 
bool IsMaxClamp (FBProperty arg1)
 Indicate if maximum value clamping will be applied on user input value. More...
 
bool IsTextureConnectableProperty (FBProperty arg1)
 
bool IsReferenceProperty (FBProperty arg1)
 
bool IsUserProperty (FBProperty arg1)
 
 SetMin (FBProperty arg1, object arg2, object arg3)
 SetMin. More...
 
 SetMax (FBProperty arg1, object arg2, object arg3)
 SetMax. More...
 
float GetMin (FBProperty arg1)
 GetMin. More...
 
float GetMax (FBProperty arg1)
 GetMax. More...
 
bool AllowsLocking (FBProperty arg1)
 AllowsLocking. More...
 
bool HasSomethingLocked (FBProperty arg1)
 HasSomethingLocked. More...
 
bool IsLocked (FBProperty arg1)
 IsLocked. More...
 
bool IsMemberLocked (FBProperty arg1, object arg2)
 IsMemberLocked. More...
 
 SetLocked (FBProperty arg1, object arg2)
 SetLocked. More...
 
 SetMemberLocked (FBProperty arg1, object arg2, object arg3)
 SetMemberLocked. More...
 
int GetSubMemberCount (FBProperty arg1)
 GetSubMemberCount. More...
 
str EnumList (FBProperty arg1, object arg2)
 Return the string of an enum value. More...
 
 NotifyEnumStringListChanged (FBProperty arg1)
 Notify system that the enum list was modified. More...
 
 __init__ (...)
 Constructor. More...
 
- Public Member Functions inherited from FBPlug
 __reduce__ ()
 
bool BeginChange (FBPlug arg1)
 Begins a change on multiple plugs. More...
 
str ClassName (FBPlug arg1)
 internal System vars. More...
 
bool ConnectDst (FBPlug arg1, FBPlug arg2, FBConnectionType arg3)
 Add a destination connection. More...
 
bool ConnectDstAt (FBPlug arg1, object arg2, FBPlug arg3, FBConnectionType arg4)
 Add a destination connection. More...
 
bool ConnectSrc (FBPlug arg1, FBPlug arg2, FBConnectionType arg3)
 Add a source connection. More...
 
bool ConnectSrcAt (FBPlug arg1, object arg2, FBPlug arg3, FBConnectionType arg4)
 Add a source connection. More...
 
 DisconnectAllDst (FBPlug arg1)
 Remove all destination connections. More...
 
 DisconnectAllSrc (FBPlug arg1)
 Remove all source connections. More...
 
bool DisconnectDst (FBPlug arg1, FBPlug arg2)
 Remove a destination connection. More...
 
bool DisconnectDstAt (FBPlug arg1, object arg2)
 Remove a destination connection at a specified index. More...
 
bool DisconnectSrc (FBPlug arg1, FBPlug arg2)
 Remove a source connection. More...
 
bool DisconnectSrcAt (FBPlug arg1, object arg2)
 Remove a source connection at a specified index. More...
 
 EndChange (FBPlug arg1)
 Ends a change on multiple plugs. More...
 
object GetDst (FBPlug arg1, object arg2)
 Get a destination connection's plug at specified index. More...
 
int GetDstCount (FBPlug arg1)
 Get destination connection count. More...
 
FBConnectionType GetDstType (FBPlug arg1, object arg2)
 Get a destination connection's type at specified index. More...
 
object GetOwned (FBPlug arg1, object arg2)
 Get the owned plug at specified index. More...
 
int GetOwnedCount (FBPlug arg1)
 Get the owned plug count. More...
 
object GetOwner (FBPlug arg1)
 Get the owner of this plug. More...
 
object GetSrc (FBPlug arg1, object arg2)
 Get a source connection's plug at specified index. More...
 
int GetSrcCount (FBPlug arg1)
 Get source connection count. More...
 
FBConnectionType GetSrcType (FBPlug arg1, object arg2)
 Get a source connection's type at specified index. More...
 
bool Is (FBPlug arg1, object arg2)
 Is( int pTypeId ) More...
 
bool IsSDKComponent (FBPlug arg1)
 Return whether or not item is an SDK component. More...
 
 MoveSrcAt (...)
 
bool ReplaceDstAt (FBPlug arg1, object arg2, FBPlug arg3)
 Replace a destination connection at a specified index. More...
 
bool ReplaceSrcAt (FBPlug arg1, object arg2, FBPlug arg3)
 Replace a source connection at a specified index. More...
 
bool SwapSrc (FBPlug arg1, object arg2, object arg3)
 Swap source connection at index A with source connection at index B. More...
 
 SetSelfModified (FBPlug arg1, FBPlugModificationFlag arg2, object arg3)
 Set the plug's self modification flag. More...
 
bool GetSelfModified (FBPlug arg1, FBPlugModificationFlag arg2)
 Tell if the plug's self has changed. More...
 
 SetContentModified (FBPlug arg1, FBPlugModificationFlag arg2, object arg3)
 Set the plug's owned property/object's modification flag. More...
 
bool GetContentModified (FBPlug arg1, FBPlugModificationFlag arg2)
 Tell if the plug's content has changed. More...
 
int GetPlugConnectionModifiedList (FBPlug arg1, FBPlugList arg2, FBPlugModificationFlag arg3, object arg4)
 Get plug's modified src/dst property/object connection added/removed List. More...
 
bool RevertModification (FBPlug arg1, FBPlugModificationFlag arg2)
 Revert the plug's modification to original status. More...
 
 __init__ (...)
 
method staticmethod (function)
 
- Public Member Functions inherited from FBPythonWrapper
 __reduce__ ()
 
 __init__ (...)
 

Public Attributes

object Data
 
ORSDK2018::FBString Name
 Return to the default scope (private) More...
 
- Public Attributes inherited from FBPythonWrapper
object OnUnbind
 

Member Function Documentation

__init__ (   ...)

Constructor.

Python Docstring:

Raises an exception
This class cannot be instantiated from Python 

C++ Signature:

 FBProperty() 
__reduce__ ( )
bool AllowsLocking ( FBProperty  arg1)

AllowsLocking.

Python Docstring:

AllowsLocking( (FBProperty)arg1) -> bool 

C++ Signature:

bool AllowsLocking() 
Returns
true if property can be locked
str AsString ( FBProperty  arg1,
FBDataAsStringFlag  arg2 
)

Get the property value as a string.

Python Docstring:

AsString( (FBProperty)arg1 [, (FBDataAsStringFlag)arg2]) -> str 

C++ Signature:

const char * AsString(FBDataAsStringFlag pFlag = kFBDataAsStringUI) 
Parameters
pFlagIndicates the returned string to be used for UI or storage. It defaults to kFBDataAsStringUI.
Returns
The string version of the property.
str EnumList ( FBProperty  arg1,
object  arg2 
)

Return the string of an enum value.

Python Docstring:

EnumList( (FBProperty)arg1, (object)arg2) -> str 

C++ Signature:

const char * EnumList(int pIndex) 
Parameters
pIndexEnum value to get string for.
Returns
String value of enum specified by pIndex.
FBStringList GetEnumStringList ( FBProperty  arg1,
object  arg2 
)

String list for enum properties.

Python Docstring:

GetEnumStringList( (FBProperty)arg1 [, (object)arg2]) -> FBStringList 

C++ Signature:

ORSDK2018::FBStringList * GetEnumStringList(bool pCreateIt = false) 
Parameters
pCreateItCreate a new list if necessary.
Returns
the pointer to the string list..
float GetMax ( FBProperty  arg1)

GetMax.

Python Docstring:

GetMax( (FBProperty)arg1) -> float 

C++ Signature:

double GetMax() 
Returns
Maximum value for the property.
float GetMin ( FBProperty  arg1)

GetMin.

Python Docstring:

GetMin( (FBProperty)arg1) -> float 

C++ Signature:

double GetMin() 
Returns
Minimum value for the property.
str GetName ( FBProperty  arg1)

Get the property's name.

Python Docstring:

GetName( (FBProperty)arg1) -> str 

C++ Signature:

const char * GetName() 
Returns
The property's name.
bool GetPropertyFlag ( FBProperty  arg1,
FBPropertyFlag  arg2 
)

GetPropertyFlag.

Python Docstring:

GetPropertyFlag( (FBProperty)arg1, (FBPropertyFlag)arg2) -> bool 

C++ Signature:

bool GetPropertyFlag(FBPropertyFlag pFlag) 
Parameters
pFlagFlag to test if it is True or False.
Returns
If the flag is True, the function returns True and vice-versa.
Warning
Flags are not saved into or read from a FBX file.
int GetPropertyFlags ( FBProperty  arg1)

GetPropertyFlags.

Python Docstring:

GetPropertyFlags( (FBProperty)arg1) -> int 

C++ Signature:

FBPropertyFlag GetPropertyFlags() 
Returns
Return all flags at once.
FBPropertyType GetPropertyType ( FBProperty  arg1)

Get the property's type.

Python Docstring:

GetPropertyType( (FBProperty)arg1) -> FBPropertyType 

C++ Signature:

FBPropertyType GetPropertyType() 
Returns
The property's type.
str GetPropertyTypeName ( FBProperty  arg1)

Get the property's type name.

Python Docstring:

GetPropertyTypeName( (FBProperty)arg1) -> str 

C++ Signature:

const char * GetPropertyTypeName() 
Returns
The property's type name.
int GetSubMemberCount ( FBProperty  arg1)

GetSubMemberCount.

Python Docstring:

GetSubMemberCount( (FBProperty)arg1) -> int 

C++ Signature:

int GetSubMemberCount() 
Returns
Number of sub-members.
bool HasSomethingLocked ( FBProperty  arg1)

HasSomethingLocked.

Python Docstring:

HasSomethingLocked( (FBProperty)arg1) -> bool 

C++ Signature:

bool HasSomethingLocked() 
Returns
true if property or any of its members is locked
bool IsAnimatable ( FBProperty  arg1)

Python Docstring:

IsAnimatable( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsAnimatable() 
bool IsInternal ( FBProperty  arg1)

Python Docstring:

IsInternal( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsInternal() 
bool IsList ( FBProperty  arg1)

Verify if property is of this type.

Python Docstring:

IsList( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsList() 
Returns
true if property is of type.
bool IsLocked ( FBProperty  arg1)

IsLocked.

Python Docstring:

IsLocked( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsLocked() 
Returns
true if property is locked
bool IsMaxClamp ( FBProperty  arg1)

Indicate if maximum value clamping will be applied on user input value.

Python Docstring:

IsMaxClamp( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsMaxClamp() 
Returns
true if property the value will be clamped to a maximum value.
bool IsMemberLocked ( FBProperty  arg1,
object  arg2 
)

IsMemberLocked.

Python Docstring:

IsMemberLocked( (FBProperty)arg1, (object)arg2) -> bool 

C++ Signature:

bool IsMemberLocked(int pIndex) 
Parameters
pIndexIndex of the sub-member of the property to check.
Returns
true if property sub-member is locked
bool IsMinClamp ( FBProperty  arg1)

Indicate if minimum value clamping will be applied on user input value.

Python Docstring:

IsMinClamp( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsMinClamp() 
Returns
true if property the value will be clamped to a minimum value.
bool IsObjectList ( FBProperty  arg1)

Indicate if is an instance of FBPropertyListObject.

Python Docstring:

IsObjectList( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsObjectList() 
Warning
A FBPropertyListObject will also return true on a call to 'IsList()'.
bool IsReadOnly ( FBProperty  arg1)

Is property read-only?

Python Docstring:

IsReadOnly( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsReadOnly() 
Returns
true if property is read-only.
bool IsReferenceProperty ( FBProperty  arg1)

Python Docstring:

IsReferenceProperty( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsReferenceProperty() 
bool IsTextureConnectableProperty ( FBProperty  arg1)

Python Docstring:

IsTextureConnectableProperty( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsTextureConnectableProperty() 
bool IsUserProperty ( FBProperty  arg1)

Python Docstring:

IsUserProperty( (FBProperty)arg1) -> bool 

C++ Signature:

bool IsUserProperty() 
ModifyPropertyFlag ( FBProperty  arg1,
FBPropertyFlag  arg2,
object  arg3 
)

ModifyPropertyFlag.

Python Docstring:

ModifyPropertyFlag( (FBProperty)arg1, (FBPropertyFlag)arg2, (object)arg3) -> None 

C++ Signature:

void ModifyPropertyFlag(FBPropertyFlag pFlag, bool pValue) 
Parameters
pFlagThe flag to switch to True or False.
pValueThe value to set about this flag.
Warning
Flags are not saved into or read from a FBX file.
NotifyEnumStringListChanged ( FBProperty  arg1)

Notify system that the enum list was modified.

Python Docstring:

NotifyEnumStringListChanged( (FBProperty)arg1) -> None 

C++ Signature:

void NotifyEnumStringListChanged() 
str OriValueAsString ( FBProperty  arg1)

Get the property original value (before any modification) as string.

Python Docstring:

OriValueAsString( (FBProperty)arg1) -> str 

C++ Signature:

const char * OriValueAsString() 
Returns
returns the original value of the property in string with format same as AsString(kDataAsStringPersistence)
SetLocked ( FBProperty  arg1,
object  arg2 
)

SetLocked.

Python Docstring:

SetLocked( (FBProperty)arg1, (object)arg2) -> None 

C++ Signature:

void SetLocked(bool pLocked) 
Parameters
pLockedTrue if the property is to be locked, false if it is to be unlocked.
SetMax ( FBProperty  arg1,
object  arg2,
object  arg3 
)

SetMax.

Python Docstring:

SetMax( (FBProperty)arg1, (object)arg2 [, (object)arg3]) -> None 

C++ Signature:

void SetMax(double pMax, bool pForceMaxClamp = false) 
Parameters
pMaxMaximum value of the property.
pForceMaxClampForce clamping to maximum value of the property.
SetMemberLocked ( FBProperty  arg1,
object  arg2,
object  arg3 
)

SetMemberLocked.

Python Docstring:

SetMemberLocked( (FBProperty)arg1, (object)arg2, (object)arg3) -> None 

C++ Signature:

void SetMemberLocked(int pIndex, bool pLocked) 
Parameters
pIndexIndex of the sub-member of the property to lock or unlock.
pLockedTrue if the sub-member is to be locked, false if it is to be unlocked.
SetMin ( FBProperty  arg1,
object  arg2,
object  arg3 
)

SetMin.

Python Docstring:

SetMin( (FBProperty)arg1, (object)arg2 [, (object)arg3]) -> None 

C++ Signature:

void SetMin(double pMin, bool pForceMinClamp = false) 
Parameters
pMinMinimum value of the property.
pForceMinClampForce clamping to minimum value of the property.
SetName ( FBProperty  arg1,
str  arg2 
)

Set the property's name.

Python Docstring:

SetName( (FBProperty)arg1, (str)arg2) -> None 

C++ Signature:

void SetName(const char * pName) 
Parameters
pNameNew name for the property.
bool SetString ( FBProperty  arg1,
str  arg2 
)

Set the property value from a string.

Python Docstring:

SetString( (FBProperty)arg1, (str)arg2) -> bool 

C++ Signature:

bool SetString(const char * pString) 
Parameters
pStringString to set property value from, with format same as AsString(kFBDataAsStringPersistence)
Returns
True if it was possible.

Member Data Documentation

Data

Read Write Property: The property data value. Type of this depends on the subclass of FBProperty (ex: in a FBPropertyInt, Data is of type int).

Name

Return to the default scope (private)

mName Property unique name.

Read Property: (str) The property's name.