setDrivenKeyframe is undoable, queryable, and editable.
This command sets a driven keyframe. A driven keyframe is similar
to a regular keyframe. However, while a standard keyframe always
has an x-axis of time in the graph editor, for a drivenkeyframe the
user may choose any attribute as the x-axis of the graph
editor.In query mode, return type is based on queried flag.
Long name (short name) |
Argument types |
Properties |
-attribute(-at) |
string |
|
|
Attribute name to set keyframes on. |
|
-insert(-i) |
|
|
|
Insert keys at the given time(s) and preserve the shape of the
animation curve(s). Note: the tangent type on inserted keys will be
fixed so that the curve shape can be preserved. |
|
-inTangentType(-itt) |
string |
|
|
The in tangent type for keyframes set by this command. Valid
values are "spline", "linear", "fast", "slow", "flat", "stepped",
"step next", "fixed", "clamped" and "plateau". Default is
"keyTangent -q -g -inTangentType" |
|
-outTangentType(-ott) |
string |
|
|
The out tangent type for keyframes set by this command. Valid
values are "spline", "linear", "fast", "slow", "flat", "stepped",
"step next", "fixed", "clamped" and "plateau". Default is
"keyTangent -q -g -outTangentType" |
|
-hierarchy(-hi) |
string |
|
|
Controls the objects this command acts on, relative to the
specified (or active) target objects. Valid values are "above,"
"below," "both," and "none." Default is "hierarchy -query" |
|
-shape(-s) |
boolean |
|
|
Consider attributes of shapes below transforms as well, except
"controlPoints". Default: true |
|
-controlPoints(-cp) |
boolean |
|
|
Explicitly specify whether or not to include the control points
of a shape (see "-s" flag) in the list of attributes. Default:
false. |
|
-insertBlend(-ib) |
boolean |
|
|
If true, a pairBlend node will be inserted for channels that
have nodes other than animCurves driving them, so that such
channels can have blended animation. If false, these channels will
not have keys inserted. If the flag is not specified, the blend
will be inserted based on the global preference for blending
animation. |
|
-currentDriver(-cd) |
string |
|
|
Set the driver to be used for the current driven keyframe to
the attribute passed as an argument. |
|
-driver(-dr) |
|
|
|
Returns list of available drivers for the attribute. |
|
-driven(-dn) |
|
|
|
Returns list of driven attributes for the selected item. |
|
-driverValue(-dv) |
float |
|
|
Value of the driver to use for this keyframe. Default value is
the current value. |
|
-value(-v) |
float |
|
|
Value to set the keyframe at. Default is the current
value. |
|