set_animated_plug_value¶
-
set_animated_plug_value(plug: Plug, value: Value, frame: float, create_curve: bool, layer_value: bool) → None¶ Set a value to plug, regarding the current 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.
Return type: None