Jump to: Board index » General » Fusion

ConnectTo() shadow failure

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

richardKwan

  • Posts: 2
  • Joined: Fri Feb 15, 2019 1:46 pm
  • Real Name: Richard Kwan

ConnectTo() shadow failure

PostFri 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'

Return to Fusion

Who is online

Users browsing this forum: No registered users and 40 guests