13
13
END_NAME = "end_name"
14
14
NODE = "node"
15
15
16
- comp_op_reserved_names = {SCENE , BASE_NAME , END_NAME , NODE }
16
+ COMP_OP_RESERVED_NAMES = {SCENE , BASE_NAME , END_NAME , NODE }
17
17
18
18
class NTPCompositorOperator (NTP_Operator ):
19
19
bl_idname = "node.ntp_compositor"
@@ -34,7 +34,7 @@ class NTPCompositorOperator(NTP_Operator):
34
34
def __init__ (self ):
35
35
super ().__init__ ()
36
36
self ._settings = compositor_node_settings
37
- for name in comp_op_reserved_names :
37
+ for name in COMP_OP_RESERVED_NAMES :
38
38
self ._used_vars [name ] = 0
39
39
40
40
@@ -87,16 +87,16 @@ def _set_color_balance_settings(self, node: CompositorNodeColorBalance
87
87
node (CompositorNodeColorBalance): the color balance node
88
88
"""
89
89
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 )]
94
94
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 )]
100
100
101
101
self ._settings ['CompositorNodeColorBalance' ] = lst
102
102
0 commit comments