Passes the input of one of its connected inputs through, acting like an exclusive switch.
This COP passes the input of one of its connected inputs through, acting like an exclusive switch. It does not use any image cache space, nor does it cook anything.
Note
If the Input Index parameter is animated, the all input sequences must be identical in the following aspects: resolution, planes, data format, and frame range. If you require that they differ, please use a Blend COP instead with an integer blend factor. If the Input Index is not animated, the input sequences do not need to match.
Parameters
| Input Index | The index of the input to pass through. |
Local variables
| L | Sequence length |
| S | Start of sequence |
| E | End of sequence |
| IL | Input sequence length |
| SR | Sequence frame rate |
| NP | Number of planes in sequence |
| W,H | Width and height of image |
| I | Image index (0 at start frame) |
| IT | Image time (0 at start frame) |
| AI | Current plane array index |
| PI | Current plane index |
| PC | Num of channels in current plane |
| CXRES | Composite Project X resolution |
| CYRES | Composite Project Y resolution |
| CPIXA | Composite Project pixel aspect ratio |
| CDEPTH | Composite Project raster depth |
| CBP | Composite Project black point |
| CWP | Composite Project white point |
Examples
| SelectingInputs | Load | Launch |
Using the Switch COP to control image network flow. This example shows how to replace empty File COPs with a warning image, and a simple example of controlling blur with a switch and defocus COP. | |
Examples that use this node
| Example for | Example name | |
|---|---|---|
| Environment Light | PortalBox | Load | Launch |
| ||
| Indirect Light | TubeCaustic | Load | Launch |
| ||
| Mantra | Ambient Occlusion | Load | Launch |
| ||
| Iso Offset | Brickify | Load | Launch |
| ||