Softimage SDK Programmer's Guide > Script Development > Python Scripting >

# Shortcuts for Python

The Softimage situtils module contains utility functions and other goodies such as the following shortcuts that facilitate Python scripting.

C | Softimage constants
log | LogMessage
disp | Dispatch function from win32com.client

In the script editor, when the language is set to Python, the Syntax Help submenu allows you to insert the shortcuts found in the Softimage siutils module for use in the script editor.

- Choosing Syntax Help > Import siutils shortcuts inserts the following code in the script editor pane:

    from siutils import log                # LogMessage
    from siutils import disp               # win32com.client.Dispatch
    from siutils import C                  # win32com.client.constants

- Choosing Syntax Help > Add Plug-in To Python Path inserts the following code in the script editor pane:

    import siutils
    # Add this plug-in path to python path
    siutils.add_to_syspath(__sipath__)

- Choosing Syntax Help > Import siutils inserts the following code in the script editor pane:

    import siutils