You are here: User Guide > Nuke > Stereoscopic Projects > Setting Up Views for the Script

Setting Up Views for the Script

Before you start working on stereoscopic images, you need to set different views for the right and the left eye in the project settings. This allows you to process the individual views separately or both views together, and see the effect of your changes on each view.

To Set up Views for Your Project

1.   Select Edit > Project Settings.
2.   Go to the Views tab. The available views are listed in the views field.

3.   If you want to remove the view called main and add views called left and right, click the Set up views for stereo button. The two views are assigned colors. To change the colors, double-click on the color field and select another color from the color picker that opens.

If you check Use colors in UI?, these colors are used in Node Graph connections, split views indicators on nodes, and Viewer and ShuffleViews node controls to make it easier to differentiate between views.

4.   If you want to add other new views, click the + button.
5.   In the dialog that opens, enter a name for the view, for example main. Click OK.

6.   Repeat steps 4 and 5 as necessary until you’ve got the views you want. You can assign colors to all views by double-clicking the area on the right of the view name.

7.   To delete an unnecessary view, select the view from the list and click the delete button. Note that deleting a view does not remove references to it from the script, and any nodes that refer to the deleted view produces an error.
8.   To select the view that’s displayed whenever you load the project, set the hero dropdown to the appropriate view.

You can now access the views in your project from the view dropdown menu of certain nodes’ controls. You’ll also notice that each view has its own button in the Viewer controls.

If you created many views, you may want them to appear in a dropdown menu rather than as separate buttons in the Viewer and node controls. To switch to using dropdown menus, uncheck View selection uses buttons? on the Views tab of the Project Settings properties panel.

Setting the way views are selected in the Viewer.

If you are likely to need the same views in several projects, you may want to save the views you created in a template.nk script file. For more information on how to do this, see Template Scripts.