XSIApplication.ExecuteScriptCommand.1.vbs Example

Applies To

XSIApplication.ExecuteScriptCommand method

Description

This example illustrates how to create a image clip and inspect it using a modal property page.

Code

Dim clip, args
args = Array(Application.InstallationPath( siFactoryPath ) & "\Data\XSI_SAMPLES\Pictures\A_Green_Suit.JPG")
set clip = ExecuteScriptCommand( "CreateImageClip", args )
On Error Resume Next
ExecuteScriptCommand "InspectObj", Array( clip,,,siModal)
if Err.Number = siErrCancelled then
	Application.LogMessage "command cancelled"
end if
On Error Goto 0

Related Examples

XSIApplication.ExecuteScriptCommand.3.pys

XSIApplication.ExecuteScriptCommand.4.js

XSIApplication.ExecuteScriptCommand.2.vbs

Keywords

XSIApplication ExecuteScriptCommand


Autodesk Softimage 2011