forked from alexanderrichtertd/plex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontext.py
More file actions
54 lines (42 loc) · 1.68 KB
/
context.py
File metadata and controls
54 lines (42 loc) · 1.68 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#*********************************************************************
# content = context
# executes other scripts on PUBLISH (on task in file name)
# version = 0.0.1
# date = 2017-10-01
#
# license = MIT
# copyright = Copyright 2017 Animationsinstitut
# author = Alexander Richter <pipeline@richteralexander.com>
#*********************************************************************
# This source file has been developed within the scope of the
# Technical Director course at Filmakademie Baden-Wuerttemberg.
# http://td.animationsinstitut.de
#*********************************************************************
import libLog
import libFunc
#*********************************************************************
# VARIABLE
TITLE = os.path.splitext(os.path.basename(__file__))[0]
LOG = libLog.init(script=TITLE)
#*********************************************************************
# CLASS
class Context():
def setup(self):
self.project_name = project_name # project
self.project_path = project_path # //awesome/project
self.path = path # D:/project/asset/file.format
self.step = step # shot or asset
self.task = task # ANIMATION
self.resolution = resolution # [1920, 1080]
self.fps = fps # 25
self.author = author # arichter
self.comment = comment # "Broken scene"
#*******************
# VARIABLE
@property
def project(self):
return self.project
#*******************
# FUNCTIONS
def open_path(self):
return libFunc.openFolder(self.file_path)