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.
|
|
-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.
|
|
-count(-cnt)
|
|
|
|
Returns the count of driven/drivers attributes for the selected item
instead of the names
|
|
-currentDriver(-cd)
|
string
|
|
|
Set the driver to be used for the current driven keyframe to the
attribute passed as an argument.
|
|
-driven(-dn)
|
|
|
|
Returns list of driven attributes for the selected item.
|
|
-driver(-dr)
|
|
|
|
Returns list of available drivers for the attribute.
|
|
-driverValue(-dv)
|
float
|
|
|
Value of the driver to use for this keyframe.
Default value is the current value.
|
|
-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"
|
|
-inTangentType(-itt)
|
string
|
|
|
The in tangent type for keyframes set by this command.
Valid values are: "auto", clamped", "fast", "flat", "linear", "plateau", "slow", "spline", and "stepnext"
Default is "keyTangent -q -g -inTangentType"
|
|
-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.
|
|
-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.
|
|
-outTangentType(-ott)
|
string
|
|
|
The out tangent type for keyframes set by this command.
Valid values are: "auto", "clamped", "fast", "flat", "linear", "plateau", "slow", "spline", "step", and "stepnext".
Default is "keyTangent -q -g -outTangentType"
|
|
-shape(-s)
|
boolean
|
|
|
Consider attributes of shapes below transforms as well,
except "controlPoints". Default: true
|
|
-value(-v)
|
float
|
|
|
Value to set the keyframe at. Default is the current value.
|
|