Eyeon:Script/Reference/Applications/Fusion/Classes/Output/GetConnectedInputs
From VFXPedia
< Eyeon:Script | Reference | Applications | Fusion | Classes | Output
Contents |
Output : GetConnectedInputs()
Arguments
GetConnectedOutput()
Returns
Returns a table listing all inputs that are using the output userdata the function is run on.
Remarks
The GetConnectedInputs function is used to determine what inputs are using a given output. For example, this could be used to find what tools are being used by a tracker center's modifier's source image.
Requirements
- eyeonScript 5.0
- Fusion 5.0
Examples
-- Tool script that will tell me the name of any bitmaps that
-- are used by a tool. outputs = tool:GetOutputList()
for l = 1, table.getn(outputs) do
x = outputs[l]:GetConnectedInputs()
toollist = composition:GetToolList()
for i, tool2 in toollist do
y= tool2:GetInputList()
for j, inputs in y do
for k = 1, table.getn(x) do
if tostring(inputs) == tostring(x[k]) then if tool2:GetAttrs().TOOLS_RegID == "TrackerModifier" then print(tool2:GetAttrs().TOOLS_Name)
end
end
end
end
end
end
else
message = tool.Comments[TIME_UNDEFINED] .. "\n"
end end
end
dump(message)
Tips for GetConnectedInputs (edit)
EyeonTips:Script/Reference/Applications/Fusion/Classes/Output/GetConnectedInputs