Difference between revisions of "Session"

From Silhouette Wiki
Jump to navigation Jump to search
Line 47: Line 47:
 
! scope="col" class="unsortable" | Description
 
! scope="col" class="unsortable" | Description
 
|-
 
|-
|property(name)
+
|node(<nowiki>name|type</nowiki>)
|returns the [[Property]] with the property name, or None
+
|finds the [[Node]] with the name or type, depending on the argument name, or None
|-
 
|clone()
 
|returns a deep clone of the object and children
 
|-
 
|getTransform(frame)
 
|returns the accumulated [[Matrix|transform]] at the specified time. This is a convenience method only useful for [[Layer|Layers]] and their children.
 
|}
 
 
 
=== Operators ===
 
 
 
{| class="wikitable"
 
! scope="col" | Name
 
! scope="col" class="unsortable" | Description
 
|-
 
|object[prop_id]
 
|the map operator can be used as shorthand for <tt>object.property(prop_id)</tt>
 
 
|}
 
|}

Revision as of 21:57, 20 November 2012

The Session object stores all the Nodes to create the output for a specific shot.

Base Class: Object

Attributes

Attributes are read-only except where noted.

Name Description
depth the session depth (read/write)
duration the duration in frames
frameRate the frame rate
nodes List of Nodes in the session
pixelAspect the pixel aspect
project the Project containing the session
renderInfo the rendering settings
size the size as a Tuple of (width, height)
startFrame the start frame number
workRange the current work range as a Tuple of (start_frame, end_frame)

Methods

Name Description
node(name|type) finds the Node with the name or type, depending on the argument name, or None