DeleteUnusedImageClips

導入

v2.0

詳細

シーン内で使用されていないすべてのイメージ クリップを削除します。 イメージ クリップが使用されていない場合には、クリップ名の横に「(Not Used)」と表示されます。 このコマンドを呼び出すと、すべての使用されていないイメージ ソースも削除されます。

このコマンドはシーンのクリーン アップに使用できます。

スクリプト構文

DeleteUnusedImageClips();

VBScript の例

' First, add an image source.

Dim oSourceObj, ImageFile

ImageFile = Application.InstallationPath( siFactoryPath ) & "/Data/XSI_SAMPLES/Pictures/xsilogo.jpg"

SIAddImageSource ImageFile, "XSIlogo", oSourceObj

' Now create an image clip from the image source.

Dim oClipObj 

set oClipObj = AddImageClip( oSourceObj, "XSIlogo_Clip" )

'Now remove all un-used imageclip, this will remove the clip that we just added since nobody is using it.

DeleteUnusedImageClips

関連項目

DeleteUnusedImageSources