ShaderNodeOut

class guerilla.ShaderNodeOut

Bases: guerilla.Node

A ShaderNode output plug, containing information about plug connection to other inputs, value, type, etc.

getconnected()

get the connected shader node inputs

This method returns the shader node input plugs connected to this plug. This method returns

a list of iputs, as several inputs can be connected to this output. LUA{ – enumerate all input connections for output in children (Document, “ShaderNodeOut”, nil, true) do

local connected = output:getconnected () if connected then

for k, input in pairs (connected) do
print (output:getpath () .. ” –> ” .. input:getpath ())

end

end

end }

return:the plugs connected to this output
rtype:{ShaderNodeIn}