Hiya,
for something that simple, why not just use the toolSet ? copy save, share 
centrally... easy to change no scripting at all, that avoids having variables 
hanging around your sessions, especially if you use them global like that.

cheers
O
________________________________
From: sanfx [nuke-python-re...@thefoundry.co.uk]
Sent: 05 February 2013 09:38
To: nuke-python@support.thefoundry.co.uk
Subject: [Nuke-python] Re: creating nodes and connecting them

on starting a 3d Scene these are the basic nodes we require , so is the way I 
have implemented preferable else can you please suggest a better way how you 
would do it ?
Code:
mainCam = nuke.nodes.Camera(name="mainCamera",xpos=100,ypos=20)
scnlnRndr = nuke.nodes.ScanlineRender(name="ScanLineRender",xpos=250,ypos=35)
scNode = nuke.nodes.Scene(name = 'Scene',xpos=250,ypos=-100)
constNode = nuke.nodes.Constant(name="Temp_Constant",xpos=400,ypos = 10)
scnlnRndr.setInput(2, mainCam)
scnlnRndr.setInput(1,scNode)
scnlnRndr.setInput(0, constNode)
defViewer = nuke.toNode("Viewer1")
defViewer.setInput(0,scnlnRndr)


________________________________

san
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to