ClearThumbnail

Description

Clears the thumbnail (if any) from each object in the specified list.

Scripting Syntax

ClearThumbnail( [InputObjs] )

Parameters

Parameter

Type

Description

InputObjs

String

List of elements (such as objects, models) from which to clear the thumbnail.

Default Value: Selected objects

Examples

JScript Example

// This example demonstrates how to use the ClearThumbnail command by opening
// one of the xsi sample scenes setting a thumbnail (from a file) on the
// Aibo object and then clearing that thumbnail.
//
// STEP 1: Run the following script:
NewScene( null, false );
SamplePath = Application.InstallationPath( siFactoryPath ) + "\\Data\\XSI_SAMPLES";
OpenScene( SamplePath + "\\Scenes\\dog.scn" );
SetThumbnail( "Aibo", SamplePath + "\\Thumbnails\\XSIlogo32.bmp" );
//
// STEP 2: View that thumbnail by using a driven tab in a shelf view.
//
// STEP 3: To clear the thumbnail, paste this line (uncommented) 
//         in the Script Editor and run it:
//
ClearThumbnail( "Aibo" );

See Also

SetThumbnail

SetThumbnailFromRegion



SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index