set_animated_plug_value
- set_animated_plug_value(plug: Plug, value: Value, frame: float, create_curve: bool, layer_value: bool, tangent_mode: int) None
Set a value to plug, regarding the target layer and the current plug animation.
value can be the plug value or an animation curve value to use to animate this plug.
- Parameters
plug (Plug) – The plug to set
value (Value) – The value to set in the plug
frame (float) – If the plug is animated or if create_curve is true, this is the frame where to insert the value in the animation curve.
create_curve (bool) – If true, create an animation curve on the plug if no curve already exist.
layer_value (bool) – If true, value is directly stored in the layer curve with no modification. If false, value is expressed as a final channel value, being automatically modified and stored in the curve layer as an intermediate value so the evaluated channel value will be equal to asked value.
tangent_mode (int) – The tangent mode to use fot the new keyframe, or -1 for the tangent mode choosen in the settings
- Return type
None