RemoveFromPartition

Description

Removes one or more objects from a partition and adds them to the default partition.

Scripting Syntax

RemoveFromPartition( [Target], [InputObjs] );

Parameters

Parameter Type Description
Target String Partition from which to remove the object.

Default Value: Current selection

InputObjs String List of objects to add to the partition.

Default Value: Current selection

Examples

VBScript Example

'  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"

See Also

CreateEmptyPartition AddToPartition MoveToPartition CreatePassWithPartition