'
' This example demonstrates how to copy partitions from
' one pass to two others.
'
' Create a new scene
NewScene , false
' Create a cone and make a layer with it
Set oCone = GetPrim( "Cone", "MeshSurface" )
CreateLayer , "Wizard_Hat", , oHat
' Create a pass based on the new layer
CreatePassFromLayers "Wizard", oPass
' Add a new cone to the pass
Set oCone = GetPrim( "Cone", "MeshSurface" )
SICreatePartition oPass, "Yummy", oCone, oConePart
' Add a new cube to the partition
Set oCube = GetPrim( "Cube", "MeshSurface" )
SICreatePartition oPass, "Icky", oCube, oCubePart
' Now create two new passes
CreatePass , "Uno", oPassUno
CreatePass , "Dos", oPassDos
' Copy the partitions from the first pass over to the new passes
CopyPartition oPassUno & "," & oPassDos, oConePart & "," & oCubePart |