Bases: oyProjectManager.core.models.VersionableBase
The class that enables the system to manage shot data.
Note
There is a design flaw, which I’ve recognized at the day I’ll release version 0.2.0. The _code of the Shot is not stored in the database, whereas the _code of a the Asset is. So one can not query Shot’s by using the _code attribute, but it is easy to get the same effect by using the number attribute. So you need to create you queries with number instead of _code.
I hope I’ll fix it in a later version.
The total of the handle attributes should not be bigger then duration-1, in which results no frame for the real shot.
| Parameters: |
|
|---|
Methods
| __init__(sequence, number[, start_frame, ...]) | |
| query() | |
| save() | commits the shot to the database |
Attributes
| code | Returns the code of this shot by composing the |
| description | |
| duration | the duration |
| end_frame | |
| handle_at_end | |
| handle_at_start | |
| id | |
| metadata | A collection of Table objects and their associated schema constructs. |
| number | |
| project | the Project instance which this object is related to |
| project_id | |
| sequence | The sequence of the current Shot instance. |
| sequence_id | |
| shot_id | |
| start_frame | |
| thumbnail_full_path | returns the thumbnail full path for this versionable |
| versionable_type | |
| versions | the Version instances attached to this object |
shot_prefix attribute of the Project
>> shot.number
"1"
>> shot.code
"SH001"
>> shot.number
"12A"
>> shot.code
"SH012A"
the Project instance which this object is related to
It is a read-only attribute
returns the thumbnail full path for this versionable
the Version instances attached to this object
It is a read-only attribute