This reference page is linked to from the following overview topics: Supported Scene Elements, FBX Nodes, Transformation Data, List of Python Fbx classes.
Base class for weighted animation constraints.
Constraints are primarily used to impose limits on properties of objects (e.g. position, orientation, scale) and to automate animation processes. A constrained object is an object with properties constrained by one or more weighted constraint sources.
Definition at line 27 of file fbxconstraint.h.
#include <fbxconstraint.h>

Public Types | |
| enum | EType { eUnknown, ePosition, eRotation, eScale, eParent, eSingleChainIK, eAim, eCharacter, eCustom } |
Constraint attribute types. More... | |
Public Member Functions | |
| virtual EType | GetConstraintType () const |
| Access the type of the constraint. | |
| virtual FbxObject * | GetConstrainedObject () const |
| Retrieve the constrained object. | |
| virtual int | GetConstraintSourceCount () const |
| Retrieve the count of constraint source. | |
| virtual FbxObject * | GetConstraintSource (int) const |
| Retrieve a constraint source with the specified index. | |
| double | GetSourceWeight (const FbxObject *pObject) const |
| Get the weight associated with a constraint source. | |
Protected Member Functions | |
| virtual void | Construct (const FbxConstraint *pFrom) |
| virtual void | ConstructProperties (bool pForceSet) |
| Optional property constructor override, automatically called by default constructor. | |
Properties | |
| FbxPropertyT< FbxDouble > | Weight |
| This property represents the degree of influence of a constraint from 0.0 (no influence) to 100.0 (full influence). | |
| FbxPropertyT< FbxBool > | Active |
| This property controls whether the constraint is applied or not. | |
| FbxPropertyT< FbxBool > | Lock |
| This property handles the lock state of the constraint. | |
| enum EType |
Constraint attribute types.
Definition at line 60 of file fbxconstraint.h.
{
eUnknown,
ePosition,
eRotation,
eScale,
eParent,
eSingleChainIK,
eAim,
eCharacter,
eCustom
};
| virtual EType GetConstraintType | ( | ) | const [inline, virtual] |
Access the type of the constraint.
Reimplemented in FbxCharacter, FbxConstraintAim, FbxConstraintCustom, FbxConstraintParent, FbxConstraintPosition, FbxConstraintRotation, FbxConstraintScale, and FbxConstraintSingleChainIK.
Definition at line 76 of file fbxconstraint.h.
{ return eUnknown; }
| virtual FbxObject* GetConstrainedObject | ( | ) | const [inline, virtual] |
Retrieve the constrained object.
Reimplemented in FbxConstraintAim, FbxConstraintParent, FbxConstraintPosition, FbxConstraintRotation, and FbxConstraintScale.
Definition at line 81 of file fbxconstraint.h.
{ return NULL; }
| virtual int GetConstraintSourceCount | ( | ) | const [inline, virtual] |
Retrieve the count of constraint source.
Reimplemented in FbxConstraintAim, FbxConstraintParent, FbxConstraintPosition, FbxConstraintRotation, and FbxConstraintScale.
Definition at line 86 of file fbxconstraint.h.
{ return 0; }
| virtual FbxObject* GetConstraintSource | ( | int | ) | const [inline, virtual] |
Retrieve a constraint source with the specified index.
| pIndex | The specified index. |
Reimplemented in FbxConstraintAim, FbxConstraintParent, FbxConstraintPosition, FbxConstraintRotation, and FbxConstraintScale.
Definition at line 92 of file fbxconstraint.h.
{ return NULL; }
| double GetSourceWeight | ( | const FbxObject * | pObject | ) | const |
Get the weight associated with a constraint source.
| pObject | The given constraint source. |
| virtual void Construct | ( | const FbxConstraint * | pFrom | ) | [protected, virtual] |
| virtual void ConstructProperties | ( | bool | pForceSet | ) | [protected, virtual] |
Optional property constructor override, automatically called by default constructor.
| pForceSet | If the property value must be set regardless of default value. |
Reimplemented from FbxObject.
Reimplemented in FbxCharacter, FbxConstraintAim, FbxConstraintParent, FbxConstraintPosition, FbxConstraintRotation, FbxConstraintScale, and FbxConstraintSingleChainIK.
This property represents the degree of influence of a constraint from 0.0 (no influence) to 100.0 (full influence).
Default value is 100.0.
Definition at line 40 of file fbxconstraint.h.
This property controls whether the constraint is applied or not.
If the value is false the constraint will have no effect. The default value is true.
Default value is true.
Definition at line 47 of file fbxconstraint.h.
This property handles the lock state of the constraint.
When enabled, the constrained object cannot be moved away from its constrained location when the constraint is active.
Default value is false.
Definition at line 55 of file fbxconstraint.h.