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 |
![create create](../gfx/create.gif) ![multiuse multiuse](../gfx/multiuse.gif) |
|
Attribute name to set keyframes on. |
|
-insert(-i) |
|
![create create](../gfx/create.gif) |
|
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 |
![create create](../gfx/create.gif) |
|
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 |
![create create](../gfx/create.gif) |
|
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 |
![create create](../gfx/create.gif) |
|
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 |
![create create](../gfx/create.gif) |
|
Consider attributes of shapes below transforms as well, except
"controlPoints". Default: true |
|
-controlPoints(-cp) |
boolean |
![create create](../gfx/create.gif) |
|
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 |
![create create](../gfx/create.gif) |
|
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 |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Set the driver to be used for the current driven keyframe to
the attribute passed as an argument. |
|
-driver(-dr) |
|
![query query](../gfx/query.gif) |
|
Returns list of available drivers for the attribute. |
|
-driven(-dn) |
|
![query query](../gfx/query.gif) |
|
Returns list of driven attributes for the selected item. |
|
-driverValue(-dv) |
float |
![create create](../gfx/create.gif) ![multiuse multiuse](../gfx/multiuse.gif) |
|
Value of the driver to use for this keyframe. Default value is
the current value. |
|
-value(-v) |
float |
![create create](../gfx/create.gif) |
|
Value to set the keyframe at. Default is the current
value. |
|