Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
935 changes: 538 additions & 397 deletions compositor/node_settings.py

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions compositor/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
END_NAME = "end_name"
NODE = "node"

comp_op_reserved_names = {SCENE, BASE_NAME, END_NAME, NODE}
COMP_OP_RESERVED_NAMES = {SCENE, BASE_NAME, END_NAME, NODE}

class NTPCompositorOperator(NTP_Operator):
bl_idname = "node.ntp_compositor"
Expand All @@ -34,7 +34,7 @@ class NTPCompositorOperator(NTP_Operator):
def __init__(self):
super().__init__()
self._settings = compositor_node_settings
for name in comp_op_reserved_names:
for name in COMP_OP_RESERVED_NAMES:
self._used_vars[name] = 0


Expand Down Expand Up @@ -87,16 +87,16 @@ def _set_color_balance_settings(self, node: CompositorNodeColorBalance
node (CompositorNodeColorBalance): the color balance node
"""
if node.correction_method == 'LIFT_GAMMA_GAIN':
lst = [("correction_method", ST.ENUM),
("gain", ST.COLOR),
("gamma", ST.COLOR),
("lift", ST.COLOR)]
lst = [NTPNodeSetting("correction_method", ST.ENUM),
NTPNodeSetting("gain", ST.COLOR),
NTPNodeSetting("gamma", ST.COLOR),
NTPNodeSetting("lift", ST.COLOR)]
else:
lst = [("correction_method", ST.ENUM),
("offset", ST.COLOR),
("offset_basis", ST.FLOAT),
("power", ST.COLOR),
("slope", ST.COLOR)]
lst = [NTPNodeSetting("correction_method", ST.ENUM),
NTPNodeSetting("offset", ST.COLOR),
NTPNodeSetting("offset_basis", ST.FLOAT),
NTPNodeSetting("power", ST.COLOR),
NTPNodeSetting("slope", ST.COLOR)]

self._settings['CompositorNodeColorBalance'] = lst

Expand Down
Loading