Shortcuts for Python

 
 
 

The Softimage sipyutils module contains utility functions such as the following shortcuts that facilitate Python scripting.

C

Softimage constants

si

Function to return Softimage application object (Application)

log

Application.LogMessage

simath

Function to return Application.XSIMath object

siui

Function to return Application.XSIUIToolkit object

siut

Function to return Application.XSIUtils object

disp

Dispatch function from win32com.client

Note
  • It is recommended to use the new sipyutils module because the siutils module is deprecated since Softimage version 11.0 SP1 (2013).

  • The 2013 shortcuts do not work in Softimage version 2013 SP1. The si = si() line causes an error. To resolve this error, you have to either comment the line, or edit the siutils module and remove the commenting on si(). Alternatively, you can use the new sipyutils shortcuts.

In the script editor, when the language is set to Python, the Syntax Help context menu enables you to insert the shortcuts found in the Softimage sipyutils module for use in the script editor.

import sipyutils
from sipyutils import *
from sipyutils import si          # win32com.client.Dispatch('XSI.Application')
from sipyutils import siut       # win32com.client.Dispatch('XSI.Utils')
from sipyutils import siui       # win32com.client.Dispatch('XSI.UIToolkit')
from sipyutils import simath   # win32com.client.Dispatch('XSI.Math')
from sipyutils import log        # LogMessage
from sipyutils import disp      # win32com.client.Dispatch
from sipyutils import C          # win32com.client.constants
import sipyutils	# Add this plug-in path to python path
sipyutils.add_to_syspath(__sipath__)

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License