@@ -49,6 +49,15 @@ class LdrToHdrCalibration(desc.CommandLineNode):
4949 value = desc .Node .internalFolder ,
5050 uid = [0 ],
5151 ),
52+ desc .BoolParam (
53+ name = 'byPass' ,
54+ label = 'Bypass' ,
55+ description = "Bypass HDR creation and use the medium bracket as the source for the next steps" ,
56+ value = False ,
57+ uid = [0 ],
58+ group = 'internal' ,
59+ enabled = lambda node : node .nbBrackets .value != 1 ,
60+ ),
5261 desc .ChoiceParam (
5362 name = 'calibrationMethod' ,
5463 label = 'Calibration Method' ,
@@ -62,6 +71,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
6271 value = 'debevec' ,
6372 exclusive = True ,
6473 uid = [0 ],
74+ enabled = lambda node : node .byPass .enabled and not node .byPass .value ,
6575 ),
6676 desc .ChoiceParam (
6777 name = 'calibrationWeight' ,
@@ -75,6 +85,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
7585 values = ['default' , 'gaussian' , 'triangle' , 'plateau' ],
7686 exclusive = True ,
7787 uid = [0 ],
88+ enabled = lambda node : node .byPass .enabled and not node .byPass .value ,
7889 ),
7990 desc .IntParam (
8091 name = 'userNbBrackets' ,
@@ -101,6 +112,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
101112 range = (8 , 14 , 1 ),
102113 uid = [0 ],
103114 advanced = True ,
115+ enabled = lambda node : node .byPass .enabled and not node .byPass .value ,
104116 ),
105117 desc .IntParam (
106118 name = 'maxTotalPoints' ,
@@ -112,6 +124,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
112124 range = (8 , 10000000 , 1000 ),
113125 uid = [0 ],
114126 advanced = True ,
127+ enabled = lambda node : node .byPass .enabled and not node .byPass .value ,
115128 ),
116129 desc .ChoiceParam (
117130 name = 'verboseLevel' ,
@@ -134,6 +147,11 @@ class LdrToHdrCalibration(desc.CommandLineNode):
134147 )
135148 ]
136149
150+ def processChunk (self , chunk ):
151+ if chunk .node .nbBrackets .value == 1 or chunk .node .byPass .value :
152+ return
153+ super (LdrToHdrCalibration , self ).processChunk (chunk )
154+
137155 @classmethod
138156 def update (cls , node ):
139157 if not isinstance (node .nodeDesc , cls ):
0 commit comments