Skip to content

Commit 20b8a98

Browse files
Merge pull request #84 from BrendanParmer/SettingVersions
Node Setting Version Numbers
2 parents 0166ed8 + af1711f commit 20b8a98

File tree

8 files changed

+1366
-892
lines changed

8 files changed

+1366
-892
lines changed

compositor/node_settings.py

Lines changed: 538 additions & 397 deletions
Large diffs are not rendered by default.

compositor/operator.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
END_NAME = "end_name"
1414
NODE = "node"
1515

16-
comp_op_reserved_names = {SCENE, BASE_NAME, END_NAME, NODE}
16+
COMP_OP_RESERVED_NAMES = {SCENE, BASE_NAME, END_NAME, NODE}
1717

1818
class NTPCompositorOperator(NTP_Operator):
1919
bl_idname = "node.ntp_compositor"
@@ -34,7 +34,7 @@ class NTPCompositorOperator(NTP_Operator):
3434
def __init__(self):
3535
super().__init__()
3636
self._settings = compositor_node_settings
37-
for name in comp_op_reserved_names:
37+
for name in COMP_OP_RESERVED_NAMES:
3838
self._used_vars[name] = 0
3939

4040

@@ -87,16 +87,16 @@ def _set_color_balance_settings(self, node: CompositorNodeColorBalance
8787
node (CompositorNodeColorBalance): the color balance node
8888
"""
8989
if node.correction_method == 'LIFT_GAMMA_GAIN':
90-
lst = [("correction_method", ST.ENUM),
91-
("gain", ST.COLOR),
92-
("gamma", ST.COLOR),
93-
("lift", ST.COLOR)]
90+
lst = [NTPNodeSetting("correction_method", ST.ENUM),
91+
NTPNodeSetting("gain", ST.COLOR),
92+
NTPNodeSetting("gamma", ST.COLOR),
93+
NTPNodeSetting("lift", ST.COLOR)]
9494
else:
95-
lst = [("correction_method", ST.ENUM),
96-
("offset", ST.COLOR),
97-
("offset_basis", ST.FLOAT),
98-
("power", ST.COLOR),
99-
("slope", ST.COLOR)]
95+
lst = [NTPNodeSetting("correction_method", ST.ENUM),
96+
NTPNodeSetting("offset", ST.COLOR),
97+
NTPNodeSetting("offset_basis", ST.FLOAT),
98+
NTPNodeSetting("power", ST.COLOR),
99+
NTPNodeSetting("slope", ST.COLOR)]
100100

101101
self._settings['CompositorNodeColorBalance'] = lst
102102

0 commit comments

Comments
 (0)