XSIApplication.ExecuteScriptCommand.2.vbs Example

Applies To

XSIApplication.ExecuteScriptCommand method

Description

This example shows different ways to call a Softimage command from vbscript Normal method. This method will not work on Netview

Code

GetPrim "Null"
' This method will not work on Netview
' (because there is no global Application object)
Application.GetPrim "Null"
' This is the method that works in a Netview
' script.  The oXsi object can be cached.
set oXsi = CreateObject( "XSI.Application" )
set oXsi = oXsi.Application
oXsi.GetPrim "Null"
' Because of the convenience of the previous methods,
' this mechanism is not recommended from vbscript.
' it is most useful for COM C++ plug-ins
Application.ExecuteScriptCommand "GetPrim", Array( "Null" )

Related Examples

XSIApplication.ExecuteScriptCommand.3.pys

XSIApplication.ExecuteScriptCommand.4.js

XSIApplication.ExecuteScriptCommand.1.vbs

Keywords

XSIApplication ExecuteScriptCommand


Autodesk Softimage 2011