Difference between revisions of "Project"

From Silhouette Wiki
Jump to navigation Jump to search
(Created page with "The Project object contains one or more Items, representing Sessions and Sources. ''Base Class: Object'' === Attributes === ''Attributes...")
 
 
Line 9: Line 9:
 
! scope="col" | Name
 
! scope="col" | Name
 
! scope="col" class="unsortable" | Description
 
! scope="col" class="unsortable" | Description
 +
! scope="col" | Added
 
|-
 
|-
 
|items
 
|items
Line 15: Line 16:
 
|path
 
|path
 
|The path to the project file
 
|The path to the project file
 +
|-
 +
|sources
 +
|a list of all [[Source|Sources]] in the project
 +
|6.0
 +
|-
 +
|sessions
 +
|a list of all [[Session|Sessions]] in the project
 +
|6.0
 +
|-
 +
|version
 +
|The project version
 +
|6.0
 
|}
 
|}
  
Line 22: Line 35:
 
! scope="col" | Name
 
! scope="col" | Name
 
! scope="col" class="unsortable" | Description
 
! scope="col" class="unsortable" | Description
 +
! scope="col" | Added
 
|-
 
|-
 
|load(path)
 
|load(path)
Line 28: Line 42:
 
|save(path=None)
 
|save(path=None)
 
|saves the current project. If path is not None, copies the project into the new location.
 
|saves the current project. If path is not None, copies the project into the new location.
 +
|-
 +
|addItem(item)
 +
|adds the [[Source]] or [[Session]] to the project
 +
|6.0
 +
|-
 +
|removeItem(item)
 +
|removes the [[Source]] or [[Session]] from the project
 +
|6.0
 
|}
 
|}

Latest revision as of 21:56, 25 July 2018

The Project object contains one or more Items, representing Sessions and Sources.

Base Class: Object

Attributes

Attributes are read-only except where noted.

Name Description Added
items List of Items
path The path to the project file
sources a list of all Sources in the project 6.0
sessions a list of all Sessions in the project 6.0
version The project version 6.0

Methods

Name Description Added
load(path) loads the project at path into the current project
save(path=None) saves the current project. If path is not None, copies the project into the new location.
addItem(item) adds the Source or Session to the project 6.0
removeItem(item) removes the Source or Session from the project 6.0