CopyPartition

詳細

パーティションをパスにコピーします。

「パーティション」はパスの一部で、グループと同様に振舞います。 パーティションは、パス内でシーン エレメントを編成するために使用します。 パーティションのタイプはオブジェクトおよびライトの 2 つです。

レンダ パスは、シーンの画像レイヤを作成します。作成したレイヤを他のパスと合成し、完全なイメージを作成できます。

スクリプト構文

CopyPartition( Target, InputObjs );

パラメータ

パラメータ タイプ 説明
Target 文字列 パーティションのコピー先となるパスのリスト
InputObjs 文字列 コピーするパーティションのリスト

VBScript の例

'

'	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

関連項目

CreatePass SICreatePartition GetCurrentPass SetCurrentPass DeleteCurrentPass