SetThumbnail

導入

v4.0

カテゴリ

ビューイング

詳細

現在のプロジェクトの Thumbnails サブフォルダにサムネイル ファイルをコピーすることで入力パスからサムネイルを設定し、指定リストの各オブジェクトのサムネイルを設定します。

スクリプト構文

SetThumbnail( [InputObjs], [Pathname] );

パラメータ

パラメータ タイプ 詳細
InputObjs 文字列 サムネイルを設定する対象のエレメント(オブジェクト、モデルなど)のリスト

デフォルト値: 選択されたオブジェクト

Pathname 文字列 サムネイルとして設定するファイルのパス名/ファイル名

デフォルト値:ユーザにパス名/ファイル名を問い合わせます(現在のプロジェクトの下の Thumbnails サブフォルダがデフォルト設定です)。

VBScript の例

'
' This example demonstrates how to use the SetThumbnail command by opening
' one of the OLD Softimage sample scenes and setting a thumbnail (from a file) on the
' Aibo object.
'
NewScene , False
samplePath = XSIUtils.BuildPath( _
        Application.InstallationPath( siFactoryPath ), _
        "Data", "XSI_SAMPLES" _
)
scnPath = XSIUtils.BuildPath( samplePath, "Scenes", "OLD", "dog.scn" )
thbPath = XSIUtils.BuildPath( samplePath, "Thumbnails", "XSIlogo32.bmp" )
OpenScene scnPath, False
SetThumbnail "Aibo", thbPath
' If you wish you can now view that thumbnail by using a driven tab in a shelf view.

関連項目

SetThumbnailFromRegion ClearThumbnail