-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSFR_Settings.py
167 lines (160 loc) · 4.84 KB
/
SFR_Settings.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
import bpy
from bpy.types import (
PropertyGroup,
)
from bpy.props import (
EnumProperty,
IntProperty,
FloatProperty,
StringProperty,
BoolProperty
)
class SFR_Settings(PropertyGroup):
#### SETTINGS OPTIMIZER ####
detection_method: EnumProperty(
name="Optimization Method",
items=(
(
'MANUAL',
'Manual',
'Manual Scene Optimizer'
),
(
'AUTOMATIC',
'Automatic',
'Automatic Scene Optimizer'
),
),
default='AUTOMATIC',
description="Optimization method, manual for basic setups, automatic for more precise settings",
options=set(), # Not animatable!
)
threshold: FloatProperty(
name="Threshold",
default=0.1,
max=1,
min=0.01,
description="Threshold on which the next benchmark method should set in",
options=set(), # Not animatable!
)
resolution: IntProperty(
name="Benchmark Res",
default=5,
max=20,
min=1,
description="Resolution the benchmark should run, higher = more precision but slower",
options=set(), # Not animatable!
)
frame_skipped: IntProperty(
name="Frame Offset",
default=10,
max=20,
min=1,
description="Frames between automatic benchmarks",
options=set(), # Not animatable!
)
inputdir: StringProperty(
name="Benchmark Folder",
default="C:/temp/",
description="Benchmarking Frames will be saved here",
subtype='DIR_PATH',
maxlen=1024,
options=set(), # Not animatable!
)
use_diffuse: BoolProperty(
name="Diffuse",
default=True,
description="Benchmark diffuse"
)
use_glossy: BoolProperty(
name="Glossy",
default=True,
description="Benchmark glossy"
)
use_transparent: BoolProperty(
name="Transparency",
default=True,
description="Benchmark transparency"
)
use_transmission: BoolProperty(
name="Transmission",
default=True,
description="Benchmark transmission"
)
use_volume: BoolProperty(
name="Volume",
default=True,
description="Benchmark volume"
)
use_indirect: BoolProperty(
name="Indirect Brightness",
default=True,
description="Benchmark indirect brightness"
)
use_caustics: BoolProperty(
name="Caustics",
default=False,
description="Benchmark caustic blur"
)
#### TEXTURE OPTIMIZER ####
diffuse_resize: IntProperty(
name="Diffuse / Albedo",
default=0,
max=7,
min=0,
description="the factor by which the diffuse or albedo textures will be scaled down, 0 = unaffected \nrecommended: 0",
options=set(), # Not animatable!
)
ao_resize: IntProperty(
name="Ambient Occlusion",
default=2,
max=7,
min=0,
description="the factor by which the ambient occlusion textures will be scaled down, 0 = unaffected \nrecommended: 2",
options=set(), # Not animatable!
)
specular_resize: IntProperty(
name="Specular / Metallic",
default=2,
max=7,
min=0,
description="the factor by which the specular or metallic textures will be scaled down, 0 = unaffected \nrecommended: 2",
options=set(), # Not animatable!
)
roughness_resize: IntProperty(
name="Roughness / Glossiness",
default=2,
max=7,
min=0,
description="the factor by which the roughness or glossiness textures will be scaled down, 0 = unaffected \nrecommended: 2",
options=set(), # Not animatable!
)
normal_resize: IntProperty(
name="Normal / Bump",
default=1,
max=7,
min=0,
description="the factor by which the normal or bump textures will be scaled down, 0 = unaffected \nrecommended: 1",
options=set(), # Not animatable!
)
opacity_resize: IntProperty(
name="Opacity / Transparency",
default=1,
max=7,
min=0,
description="the factor by which the opacity or transparency textures will be scaled down, 0 = unaffected \nrecommended: 1",
options=set(), # Not animatable!
)
translucency_resize: IntProperty(
name="Translucency",
default=1,
max=7,
min=0,
description="the factor by which the translucency textures will be scaled down, 0 = unaffected \nrecommended: 1",
options=set(), # Not animatable!
)
create_backup: BoolProperty(
name="Create Backup",
default=True,
description='Creates a backup of all the image files in the folder "textures backup"\nwe heavily recommend to keep this enabled'
)