@@ -107,7 +107,7 @@ def _set_color_balance_settings(self, node: CompositorNodeColorBalance
107107 NTPNodeSetting ("gamma" , ST .COLOR , min_version_ = (3 , 5 , 0 )),
108108 NTPNodeSetting ("lift" , ST .VEC3 , max_version_ = (3 , 5 , 0 )),
109109 NTPNodeSetting ("lift" , ST .COLOR , min_version_ = (3 , 5 , 0 ))]
110- else :
110+ elif node . correction_method == 'OFFSET_POWER_SLOPE' :
111111 lst = [NTPNodeSetting ("correction_method" , ST .ENUM ),
112112 NTPNodeSetting ("offset" , ST .VEC3 , max_version_ = (3 , 5 , 0 )),
113113 NTPNodeSetting ("offset" , ST .COLOR , min_version_ = (3 , 5 , 0 )),
@@ -116,6 +116,17 @@ def _set_color_balance_settings(self, node: CompositorNodeColorBalance
116116 NTPNodeSetting ("power" , ST .COLOR , min_version_ = (3 , 5 , 0 )),
117117 NTPNodeSetting ("slope" , ST .VEC3 , max_version_ = (3 , 5 , 0 )),
118118 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
119130
120131 color_balance_info = self ._node_infos ['CompositorNodeColorBalance' ]
121132 self ._node_infos ['CompositorNodeColorBalance' ] = color_balance_info ._replace (attributes_ = lst )
0 commit comments