StereoSetup v1.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: saurabh sameer
script which lets u create the stereo cam setup with both the cameras linked via expression to manage your convergence and inter axial. Also creates the required dependent nodes.
Requirements:
4.8, 5.0, 5.1, 5.2, 6.0, 6.1 or later
26 Aug 2010
164
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
def stereosetup():
c1=nuke.nodes.Camera()
c2=nuke.nodes.Camera()
c2['label'].setValue('Right')
c1['label'].setValue('Left')
c1['translate'].setExpression('-%s.translate' %c2.name())
c1['rotate'].setExpression('-%s.rotate' %c2.name())
s1=nuke.nodes.ScanlineRender()
s2=nuke.nodes.ScanlineRender()
s1.setInput(2,c1)
s2.setInput(2,c2)
x1=nuke.nodes.Axis()
c1.setInput(0,x1)
c2.setInput(0,x1)
j1=nuke.nodes.JoinViews()
j1.setInput(0,s1)
j1.setInput(1,s2)

 

this create the required nodes.

1
2
3
mymenu=nuke.toolbar('Nodes')
a=mymenu.addMenu('Stereo')
a.addCommand('Stereo/StereoSetup','nuke.createNode("
stereosetup
")')

this to add in your menu.py

Please login in order to download these files.

You have no rights to post comments

We have 3136 guests and 81 members online