TogglePass

Abstract: Switch to the selected pass plus setting the time range.

Description: This tool switches to the selected pass and sets the scene time range from the current pass's render options.

Working Scenarios: This tool is a good time saver if your workflow depends on having multiple cameras that take the same location and you use passes to separate them.
In such cases you just need to switch any viewport to render pass and select any pass you want to work on to switch to the related camera and set the scene time range to the correct values.

User Usage: Select the pass you want to set and run the script.

Developer Usage: You can call this tool from any other script using the following function call:
TogglePass(oPass)

Where oPass is the pass object that you want to set.
This tool returns true if it succeeds and false if it failed for any reason.

Nature: Script

Applies To: XSI 4.0 on NT,Win2K,XP

Languages: VBScript