See sample: FBConstraintManager.py.
Public Member Functions |
|
FBConstraintManager () | |
Constructor. |
|
FBConstraint | TypeCreateConstraint (int pTypeIndex) |
Create a constraint. |
|
int | TypeGetCount () |
Get the number of registered constraint
types. |
|
str | TypeGetName (int pTypeIndex) |
Get the name of a registered type of
constraint. |
Constructor.
FBConstraint TypeCreateConstraint | ( | int | pTypeIndex | ) |
Create a constraint.
Given the index in the registry, this will create an instance of this constraint. Note that this constraint is not automatically added to the constraint tool, and must be added manually in order to use in the 'Constraints' tool.
pTypeIndex | Index of constraint type. |
int TypeGetCount | ( | ) |
Get the number of registered constraint types.
Get the name of a registered type of constraint.
This will search in the registry for a constraint at the index pTypeIndex.
pTypeIndex | Index of a constraint type. |