Eyeon:Script/Reference/Applications/Fusion/Classes/Input/GetExpression

From VFXPedia

Jump to: navigation, search

Contents

Input : GetExpression()

Arguments

expr = GetExpression()

Returns

  • expr (string)

Returns the simple expression string from a given input.

Remarks

This function returns the expression string shown within the Input's Expression field, if any, or an empty string if not.

Simple expressions can be very useful for automating the relationship between controls, especially in macros and commonly-used comps.

Requirements

eyeonScript 5.1 Fusion 5.1

Examples

-- get the Green input's expression string, if any
expr = tool.Green:GetExpression()
 
-- make the Blue input's expression match it
if expr then
   tool.Blue:SetExpression(expr)
end


Tips for GetExpression (edit)

EyeonTips:Script/Reference/Applications/Fusion/Classes/Input/GetExpression