RemoveFromPartition

カテゴリ

group

詳細

1 つ以上のオブジェクトをパーティションから削除し、削除したオブジェクトをデフォルトのパーティションに追加します。

スクリプト構文

RemoveFromPartition( [Target], [InputObjs] );

パラメータ

パラメータ タイプ 詳細
Target 文字列 削除するオブジェクトを含むパーティション

デフォルト値: 現在選択されている値

InputObjs 文字列 パーティションに追加するオブジェクトのリスト

デフォルト値: 現在選択されている値

VBScript の例

'  This example demonstrates how to create a partition,
'  how to add an object to it and then how to remove an
'  object from it.
NewScene , false
' Create a partition
CreatePartition "Passes.Default_Pass", "PartitionEx"
' Add a scene object to add in the new partition
CreatePrim "Sphere", "MeshSurface"
' Add the sphere to the partition.
AddToPartition "Passes.Default_Pass.PartitionEx" , "sphere"
' The scene now contains this following partion: PartitionEx
' and the "sphere" object is part of it.
' Now, remove the "sphere" from the partition
RemoveFromPartition "Passes.Default_Pass.PartitionEx" , "sphere"

関連項目

CreateEmptyPartition AddToPartition MoveToPartition CreatePassWithPartition