Creates and adds a new Pass to the scene.
Pass PassContainer.AddPass( Object in_Preset, String in_name ); |
oReturn = PassContainer.AddPass( [Preset], [Name] ); |
The new Pass object
Parameter | Type | Description |
---|---|---|
Preset | Variant containing preset or string representing a preset object (e.g. "Caustic_Pass") |
Any of the Pass Presets Default Value: "Pass" (default pass) |
Name | String |
Name of the new Pass object Default Value: "" |
# # This example demonstrates how to add a new reflection pass # app = Application oPassContainer = app.ActiveProject.ActiveScene.PassContainer oPass = oPassContainer.AddPass( "Reflection_Pass", "My_Reflection_Pass" ) Application.LogMessage( "Pass's name: " + oPass.Name ) |