-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path__init__.py
73 lines (63 loc) · 2.4 KB
/
__init__.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
############# BEGIN GPL 3.0 LICENSE BLOCK ##############################
#
# This file is part of Doppelrender.
#
# Doppelrender is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Doppelrender is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Doppelrender. If not, see <http://www.gnu.org/licenses/>.
#
############# END GPL 3.0 LICENSE BLOCK ################################
# <pep8 compliant>
bl_info = {
"name": "Dopplerender",
"description": "Smart sequence-rendering that automatically re-uses duplicate frames without re-rendering.",
"author": "Jefferson Smith",
"version": (0, 0, 3),
"blender": (2, 7, 8),
"location": "Properties > Scene > Render",
"category": "Render",
"warning": "",
"support": 'COMMUNITY'
}
if "bpy" in locals():
import imp
if "dopplerender" in locals():
imp.reload(dopplerender)
import bpy
import os
import tempfile
from . import dopplerender
def register():
bpy.utils.register_module(__name__)
bpy.types.Scene.dopplerender_thumbsize = bpy.props.FloatProperty(
name="Thumbnail Reduction",
description="Percentage scale of thumbnail size for frame comparison",
default=5,
min=1,
max=100,
subtype='PERCENTAGE')
bpy.types.Scene.dopplerender_thumbpath = bpy.props.StringProperty(
name="Thumbnail Render Directory",
subtype='FILE_PATH',
default=os.path.join(tempfile.gettempdir(), "dopthumbs", "tiny####.png"))
bpy.types.Scene.dopplerender_copytype = bpy.props.EnumProperty(
items=[('SYMLINK', "Symlink", "Symbolic Link duplicate frame files"),
('COPY', "Copy", "Copy duplicate frame files")],
name="Frame copying",
description="Frame duplication method",
default='COPY'
)
def unregister():
del bpy.types.Scene.dopplerender_copytype
del bpy.types.Scene.dopplerender_thumbpath
del bpy.types.Scene.dopplerender_thumbsize
bpy.utils.unregister_module(__name__)