v4.0
ビューイング
現在のプロジェクトの Thumbnails サブフォルダにサムネイル ファイルをコピーすることで入力パスからサムネイルを設定し、指定リストの各オブジェクトのサムネイルを設定します。
SetThumbnail( [InputObjs], [Pathname] ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| InputObjs | 文字列 | サムネイルを設定する対象のエレメント(オブジェクト、モデルなど)のリスト
デフォルト値: 選択されたオブジェクト |
| Pathname | 文字列 | サムネイルとして設定するファイルのパス名/ファイル名
デフォルト値:ユーザにパス名/ファイル名を問い合わせます(現在のプロジェクトの下の Thumbnails サブフォルダがデフォルト設定です)。 |
'
' 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.
|