XSIApplication.ExecuteScriptCommand.2.vbs Example
Applies To
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
Keywords
XSIApplication ExecuteScriptCommand
Autodesk Softimage 2011