XSIApplication.7.pys Example

Applies To

XSIApplication object

Description

How to create an instance of the Application Object from pythonscript for use within a NetView html page. Normally you create a instance of an automation object using: import win32com.client; o=win32com.client.Dispatch('XSI.Application') however win32com is not a trusted module so you get around this by defining a vbscript function called getXSIApp() that returns the Application object.

Code

try :
	Application = window.getXSIApp()
except :
	print("No browser")
# Note: Python is not a fully functional choice for web programming.
# We recommend writing the Python code as Softimage Custom Commands
# which are invoked using a little JScript or VBScript embedded in the
# html.

Related Examples

XSIApplication.5.pys

XSIApplication.6.pys

XSIApplication.3.js

XSIApplication.4.js

XSIApplication.1.vbs

XSIApplication.2.vbs

Keywords

XSIApplication ActivateWorkgroup AddCommand AddWorkgroup CreateAddon CreateCommand CreateProject ExecuteCommand ExecuteScriptCommand GetCommandByScriptingName GetInstallationPath2 GetObjectFromID GetShaderDef InstallAddon LoadPlugin RegisterShaderCustomParameterType RegisterShaderFamily RemoveCommand RemoveWorkgroup RescanWorkgroups UnInstallAddon UnloadPlugin UpdatePlugins ActiveProject2 ActiveSceneRoot ActiveToolName Commands Desktop Devices Dictionary EventInfos FCurveSelection Filters InstallationPath Interactive License Platform Plugins Preferences Renderers Selection ShaderDefinitions Workgroups


Autodesk Softimage 2011