Eyeon:Script/Reference/Applications/Fusion/Classes/Operator/AddModifier

From VFXPedia

Jump to: navigation, search

Contents

Tool : AddModifier

Summary

Creates a modifier and connects it to an Input. This provides an easy way to animate the controls of a tool.


Arguments

boolean = AddModifier(string input, string modifier)


input
ID of the tool's Input to be connected to
modifier
ID of the modifier to be created


Returns

A boolean value indicating success.

Examples

-- animate the Blend control over 100 frames
if tool:AddModifier("Blend", "BezierSpline") then
    tool.Blend[0] = 1.0
    tool.Blend[100] = 0.0
end

Requirements

  • eyeonScript 5.0
  • Fusion 5.0


See Also


Tips for AddModifier (edit)

  • To remove a modifier, just set the input to nil (eyeonscript) or None (python).