Difference between revisions of "Silhouette Module Reference"

From Silhouette Wiki
Jump to navigation Jump to search
Line 19: Line 19:
|activeSession()||Return the active [[Session]], or None
|activeSession()||Return the active [[Session]], or None
|addAction(action)</tt>||Add a new [[Action]] to the action list
|addAction(action)||Add a new [[Action]] to the action list

Revision as of 23:26, 17 November 2012

The fx Module

All of Silhouette's built-in functions are defined in the fx module. The easiest way to make use of the module is to use the Python statement from fx import *.

Global Functions

Name Description
action(name) Returns the Action with the given name
activeLayer() Return the active Layer, or None
activeNode() Return the active Node, or None
activeProject() Return the active Project, or None
activeSession() Return the active Session, or None
addAction(action) Add a new Action to the action list

Global Constants

fx Objects

Name Description
Action Base class for Actions
Object Base class for all objects