parentConstraint is undoable, queryable, and editable.
Constrain an object's position and rotation so that it behaves as if it
were a child of the target object(s). In the case of multiple targets,
the overall position and rotation of the constrained object is the
weighted average of each target's contribution to the position and
rotation of the object.
In query mode, return type is based on queried flag.
Long name (short name) |
Argument types |
Properties |
|
-createCache(-cc)
|
float float
|
|
|
This flag is used to generate an animation curve that serves as a
cache for the constraint. The two arguments define the start and end
frames.
The cache is useful if the constraint has multiple targets and
the constraint's interpolation type is set to "no flip". The "no flip"
mode prevents flipping during playback, but the result is dependent on
the previous frame. Therefore in order to consistently get the same
result on a specific frame, a cache must be generated. This flag
creates the cache and sets the constraint's interpolation type to
"cache". If a cache exists already, it will be deleted and replaced
with a new cache.
|
|
-decompRotationToChild(-dr)
|
|
|
|
During constraint creation, if the rotation offset between the constrained
object and the target object is maintained, this flag indicates close to
which object the offset rotation is decomposed. Setting this flag will make
the rotation decomposition close to the constrained object instead of the
target object, which is the default setting.
|
|
-deleteCache(-dc)
|
|
|
|
Delete an existing interpolation cache.
|
|
-layer(-l)
|
string
|
|
|
Specify the name of the animation layer where the constraint should be added.
|
|
-maintainOffset(-mo)
|
|
|
|
If this flag is specified the position and rotation of the
constrained object will be maintained.
|
|
-name(-n)
|
string
|
|
|
Sets the name of the constraint node to the specified
name. Default name is constrainedObjectName_constraintType
|
|
-remove(-rm)
|
|
|
|
removes the listed target(s) from the constraint.
|
|
-skipRotate(-sr)
|
string
|
|
|
Causes the axis specified not to be considered when
constraining rotation. Valid arguments are "x", "y", "z" and "none".
|
|
-skipTranslate(-st)
|
string
|
|
|
Causes the axis specified not to be considered when
constraining translation. Valid arguments are "x", "y", "z" and "none".
|
|
-targetList(-tl)
|
|
|
|
Return the list of target objects.
|
|
-weight(-w)
|
float
|
|
|
Sets the weight value for the specified target(s).
If not given at creation time, the default value of 1.0 is used.
|
|
-weightAliasList(-wal)
|
|
|
|
Returns the names of the attributes that control the weight
of the target objects. Aliases are returned in the same order
as the targets are returned by the targetList flag
|
|