-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchive_info.py
38 lines (28 loc) · 863 Bytes
/
archive_info.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import alembic
class ArchiveInfo(object):
def __init__(self):
super(ArchiveInfo, self).__init__()
self._fps = 24.0
self._start_frame = 1001
self._end_frame = 1001
self.time_per_cycle = 1 / self.fps
self.start_time = self.start_frame / self.fps
self.ts = alembic.AbcCoreAbstract.TimeSampling(self.time_per_cycle, self.start_time)
@property
def fps(self):
return self._fps
@fps.setter
def fps(self, fps):
self._fps = fps
@property
def start_frame(self):
return self._start_frame
@start_frame.setter
def start_frame(self, start_frame):
self._start_frame = start_frame
@property
def end_frame(self):
return self._end_frame
@end_frame.setter
def end_frame(self, end_frame):
self._end_frame = end_frame