Share

Miscellaneous functions and expressions

The following are miscellaneous expressions:

BUFFERDescription
ReturnsThe old value when current value is off.
Syntax1buffer(vector,number) Vector is a vector. Number is a Boolean number, and can be switched on or off.
Syntax2buffer(number1,number2) Number1 is a real number.Number2 is a Boolean number, and can be switched on or off.
DAMPINGDescription
PurposeApplies damping to a numerical value.
Syntaxdamping(number)
DAMP (Clock based)Description
PurposeSimilar to Damping, except this expression is based on the MotionBuilder clock instead of the refresh rate. This relation is recommended over the Damp relation, as that makes your scene identical on every computer.
Syntaxdamp3dclockbased
DAMP (3D) (Clock based)Description
PurposeSimilar to Damp (clock-based), except this expression is based on the Damp (3D) relation.
Syntaxdamp3dclockbased
DAMPING (3D)Description
PurposeDamps the position of a vector using a specified damping factor.
Syntaxdamping3d
PRECISION VECTORDescription
PurposeUse this constraint to apply a precise value to every component of the vector: X, Y, and Z can each have different precision values.
SyntaxprecisionVector
Receivesa (Number) and Precision (Number)
SendsResult (Number)
PULL VECTORDescription
PurposeContinuously pulls the vector from the input parameter and stores the result in the internal buffer, which is then used as the Result value. This value gives you the value of the last evaluation.
SyntaxpullVector
PULSEDescription
PurposeSends an alternating stream of zeroes and ones at the specified frequency, for example: 010101010101.
Syntaxpulse
TRIGGERED PLUS MINUS COUNTERDescription
PurposeCreates a trigger to add the increment/decrement.
Syntaxtriggeredplusminuscounter
TRIGGERED RANDOMDescription
PurposeGenerates a random number on demand.
Syntaxtriggeredrandom

Was this information helpful?