RemoveFromFolder

Introduced

v1.5

Description

Removes elements from the specified folder.

Scripting Syntax

RemoveFromFolder( Target, [InputObjs] );

Parameters

Parameter Type Description
Target String Name of the folder containing the elements to remove.
InputObjs String List of objects to remove.

Default Value: Current selection.

Examples

VBScript Example

dim clipFile

clipFile = Application.InstallationPath( siFactoryPath ) & "\Data\XSI_SAMPLES\Pictures\bottom_teeth.jpg"

const clipName = "MyClip"

' Create an image clip

CreateImageClip clipFile, clipName

' Create a folder named MyBMP_Clips

CreateFolder "Clips", "MyBMP_Clips"

' Move the clip under the new folder

MoveToFolder "Clips.MyBMP_Clips", "Clips." & clipName

'remove the clip we just  moved

RemoveFromFolder "Clips.MyBMP_Clips", "Clips." & clipName

See Also

CreateFolder MoveToFolder RemoveFolder