@@ -107,7 +107,7 @@ def _set_color_balance_settings(self, node: CompositorNodeColorBalance
107
107
NTPNodeSetting ("gamma" , ST .COLOR , min_version_ = (3 , 5 , 0 )),
108
108
NTPNodeSetting ("lift" , ST .VEC3 , max_version_ = (3 , 5 , 0 )),
109
109
NTPNodeSetting ("lift" , ST .COLOR , min_version_ = (3 , 5 , 0 ))]
110
- else :
110
+ elif node . correction_method == 'OFFSET_POWER_SLOPE' :
111
111
lst = [NTPNodeSetting ("correction_method" , ST .ENUM ),
112
112
NTPNodeSetting ("offset" , ST .VEC3 , max_version_ = (3 , 5 , 0 )),
113
113
NTPNodeSetting ("offset" , ST .COLOR , min_version_ = (3 , 5 , 0 )),
@@ -116,6 +116,17 @@ def _set_color_balance_settings(self, node: CompositorNodeColorBalance
116
116
NTPNodeSetting ("power" , ST .COLOR , min_version_ = (3 , 5 , 0 )),
117
117
NTPNodeSetting ("slope" , ST .VEC3 , max_version_ = (3 , 5 , 0 )),
118
118
NTPNodeSetting ("slope" , ST .COLOR , min_version_ = (3 , 5 , 0 ))]
119
+ elif node .correction_method == 'WHITEPOINT' :
120
+ lst = [NTPNodeSetting ("correction_method" , ST .ENUM ),
121
+ NTPNodeSetting ("input_temperature" , ST .FLOAT ),
122
+ NTPNodeSetting ("input_tint" , ST .FLOAT ),
123
+ NTPNodeSetting ("output_temperature" , ST .FLOAT ),
124
+ NTPNodeSetting ("output_tint" , ST .FLOAT )]
125
+ else :
126
+ self .report ({'ERROR' },
127
+ f"Unknown color balance correction method "
128
+ f"{ enum_to_py_str (node .correction_method )} " )
129
+ return
119
130
120
131
color_balance_info = self ._node_infos ['CompositorNodeColorBalance' ]
121
132
self ._node_infos ['CompositorNodeColorBalance' ] = color_balance_info ._replace (attributes_ = lst )
0 commit comments