Fri Feb 15, 2019 2:42 pm
I am a newbie on both Fusion and Lua ... your help is much appreciated.
I am trying to lua-script the following :
[ Shadow1 (Sh) ] --> [ ImagePlane3D1 (Image Plane 3D,3Im) ]
At the Console :
shd = comp:AddTool("Shadow")
ip = comp:AddTool("ImagePlane3D")
==ip.MaterialInput:ConnectTo(shd.Output)
false
==ImagePlane3D1.MaterialInput:ConnectTo(Shadow1.Output)
false
However, I have no trouble to manually connect the two at the Flow window.
showAllConnectedMainInputs(ip)
'Shadow1.Output' ==> 'ImagePlane3D1.MaterialInput'
Note : I can lua-script to connect a Merge with ImagePlance3D without issue
mgr = comp:AddTool("Merge")
ip = comp:AddTool("ImagePlane3D")
==ip.MaterialInput:ConnectTo(mgr.Output)
true
showAllConnectedMainInputs(ip)
'Merge1.Output' ==> 'ImagePlane3D1.MaterialInput'