v4.0
Clears the thumbnail (if any) from each object in the specified list.
ClearThumbnail( [InputObjs] ); |
Parameter | Type | Description |
---|---|---|
InputObjs | String | List of elements (such as
objects, models) from which to clear the thumbnail.
Default Value: Selected objects |
// // This example demonstrates how to use the ClearThumbnail command by opening // one of the Softimage sample scenes setting a thumbnail (from a file) on the // Aibo object and then clearing that thumbnail. // // STEP 1: Run the following script: NewScene("", false); var SamplePath = XSIUtils.BuildPath( Application.InstallationPath(siFactoryPath), "Data", "XSI_SAMPLES" ); OpenScene( XSIUtils.BuildPath(SamplePath, "Scenes", "OLD", "dog.scn"), false ); SetThumbnail( "Aibo", XSIUtils.BuildPath(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" ); |