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

From VFXPedia

Jump to: navigation, search

Contents

Tool : FindMainInput

Summary

Returns a main (visible) Input of the tool, by index.


Arguments

input = FindMainInput(number index)


index
An integer index value of 1 or greater


Returns

An Input object.


Requirements

  • eyeonScript 5.0
  • Fusion 5.1


See Also

Input


Tips for FindMainInput (edit)

Loop through all main inputs. LUA:

tool = comp.ActiveTool
i = 1
while true do
  inp = (tool:FindMainInput(i))
  if inp == nil then
        break
  end
 
  -- Got input
  print (inp:GetAttrs().INPS_Name)
  i = i + 1
end

PYTHON:

tool = comp.ActiveTool
 
i = 1
while True:
        inp = tool.FindMainInput(i)
        if inp is None:
                break
 
        # Got input
        print(inp.GetAttrs()["INPS_Name"])
        i+=1