Difference between revisions of "Object"

From Silhouette Wiki
Jump to navigation Jump to search
(Created page with "The Object is the common base class for all of Silhouette's primary data objects. All objects have a unique id, user-editable label, and contain Properties. ===...")
 
Line 59: Line 59:
  
 
=== Constants ===
 
=== Constants ===
 
==== Action Type ====
 
 
{| class="wikitable"
 
! scope="col" | Name
 
! scope="col" class="unsortable" | Description
 
|-
 
|Action
 
|A normal action that appears in the Actions menu (the default)
 
|-
 
|ShapeImporter
 
|An Action that should appear in the Shape Import menu
 
|-
 
|ShapeExporter
 
|An Action that should appear in the Shape Export menu
 
|-
 
|Extension
 
|An Action that implements core functionality is bound using some other means
 
|}
 

Revision as of 21:14, 20 November 2012

The Object is the common base class for all of Silhouette's primary data objects. All objects have a unique id, user-editable label, and contain Properties.

Attributes

Attributes are read-only except where noted.

Name Description
children List of child objects or None
color the object Color - not all objects have a way of changing their color (read/write)
id the unique id as string
label the object label (read/write)
locked True if locked (read/write)
note the object note (read/write)
parent the parent Object, or None
properties the dictionary of Properties
selected True if selected
type the object type name
visible True if visible (read/write)

Methods

Name Description
property(name) returns the Property with the property name, or None
clone() returns a deep clone of the object and children
getTransform(frame) returns the accumulated transform at the specified time. This is a convenience method only useful for Layers and their children.

Constants