src/jmLightToolkit.py
def __lightOptimizer__adaptSlider(self):
        """ Adapting slider value per attributes. """
        current_text = self.comboBox_lightOptimizer_attributes.currentText()
        if current_text in ["aiSamples", "aiVolumeSamples"]:
            self.horizontalSlider_lightOptimizer_min.setMaximum(11)
            self.spinBox_lightOptimizer_min.setMaximum(11)
            self.horizontalSlider_lightOptimizer_max.setMaximum(11)
            self.spinBox_lightOptimizer_max.setMaximum(11)

        elif current_text in ["aiIndirect", "aiVolume"]:
            self.horizontalSlider_lightOptimizer_min.setMaximum(1)
            self.spinBox_lightOptimizer_min.setMaximum(1)
            self.horizontalSlider_lightOptimizer_max.setMaximum(1)
            self.spinBox_lightOptimizer_max.setMaximum(1)

        elif current_text == "aiMaxBounces":
            self.horizontalSlider_lightOptimizer_min.setMaximum(999)
            self.spinBox_lightOptimizer_min.setMaximum(999)
            self.horizontalSlider_lightOptimizer_max.setMaximum(999)
            self.spinBox_lightOptimizer_max.setMaximum(999)

        elif current_text == "aiRadius":
            self.horizontalSlider_lightOptimizer_min.setMaximum(101)
            self.spinBox_lightOptimizer_min.setMaximum(101)
            self.horizontalSlider_lightOptimizer_max.setMaximum(101)
            self.spinBox_lightOptimizer_max.setMaximum(101)

        elif current_text in ["aiExposure", "intensity"]:
            self.horizontalSlider_lightOptimizer_min.setMaximum(21)
            self.spinBox_lightOptimizer_min.setMaximum(21)
            self.horizontalSlider_lightOptimizer_max.setMaximum(21)
            self.spinBox_lightOptimizer_max.setMaximum(21)

        else:
            _logger.error("Out Range.")
 Adapting slider value per attributes. 
Adapting slider value per attributes.
Adapting slider value per attributes .
def __lightOptimizer__adaptSlider(self):
        current_text = self.comboBox_lightOptimizer_attributes.currentText()
        if current_text in ["aiSamples", "aiVolumeSamples"]:
            self.horizontalSlider_lightOptimizer_min.setMaximum(11)
            self.spinBox_lightOptimizer_min.setMaximum(11)
            self.horizontalSlider_lightOptimizer_max.setMaximum(11)
            self.spinBox_lightOptimizer_max.setMaximum(11)
        elif current_text in ["aiIndirect", "aiVolume"]:
            self.horizontalSlider_lightOptimizer_min.setMaximum(1)
            self.spinBox_lightOptimizer_min.setMaximum(1)
            self.horizontalSlider_lightOptimizer_max.setMaximum(1)
            self.spinBox_lightOptimizer_max.setMaximum(1)
        elif current_text == "aiMaxBounces":
            self.horizontalSlider_lightOptimizer_min.setMaximum(999)
            self.spinBox_lightOptimizer_min.setMaximum(999)
            self.horizontalSlider_lightOptimizer_max.setMaximum(999)
            self.spinBox_lightOptimizer_max.setMaximum(999)
        elif current_text == "aiRadius":
            self.horizontalSlider_lightOptimizer_min.setMaximum(101)
            self.spinBox_lightOptimizer_min.setMaximum(101)
            self.horizontalSlider_lightOptimizer_max.setMaximum(101)
            self.spinBox_lightOptimizer_max.setMaximum(101)
        elif current_text in ["aiExposure", "intensity"]:
            self.horizontalSlider_lightOptimizer_min.setMaximum(21)
            self.spinBox_lightOptimizer_min.setMaximum(21)
            self.horizontalSlider_lightOptimizer_max.setMaximum(21)
            self.spinBox_lightOptimizer_max.setMaximum(21)
        else:
            _logger.error("Out Range.")
def __lightOptimizer__adaptSlider ( self ) : current_text = self . comboBox_lightOptimizer_attributes . currentText ( ) if current_text in [ "aiSamples" , "aiVolumeSamples" ] : self . horizontalSlider_lightOptimizer_min . setMaximum ( 11 ) self . spinBox_lightOptimizer_min . setMaximum ( 11 ) self . horizontalSlider_lightOptimizer_max . setMaximum ( 11 ) self . spinBox_lightOptimizer_max . setMaximum ( 11 ) elif current_text in [ "aiIndirect" , "aiVolume" ] : self . horizontalSlider_lightOptimizer_min . setMaximum ( 1 ) self . spinBox_lightOptimizer_min . setMaximum ( 1 ) self . horizontalSlider_lightOptimizer_max . setMaximum ( 1 ) self . spinBox_lightOptimizer_max . setMaximum ( 1 ) elif current_text == "aiMaxBounces" : self . horizontalSlider_lightOptimizer_min . setMaximum ( 999 ) self . spinBox_lightOptimizer_min . setMaximum ( 999 ) self . horizontalSlider_lightOptimizer_max . setMaximum ( 999 ) self . spinBox_lightOptimizer_max . setMaximum ( 999 ) elif current_text == "aiRadius" : self . horizontalSlider_lightOptimizer_min . setMaximum ( 101 ) self . spinBox_lightOptimizer_min . setMaximum ( 101 ) self . horizontalSlider_lightOptimizer_max . setMaximum ( 101 ) self . spinBox_lightOptimizer_max . setMaximum ( 101 ) elif current_text in [ "aiExposure" , "intensity" ] : self . horizontalSlider_lightOptimizer_min . setMaximum ( 21 ) self . spinBox_lightOptimizer_min . setMaximum ( 21 ) self . horizontalSlider_lightOptimizer_max . setMaximum ( 21 ) self . spinBox_lightOptimizer_max . setMaximum ( 21 ) else : _logger . error ( "Out Range." )
Adapting slider value per attributes.
Adapting slider value per attributes .
""" Adapting slider value per attributes. """
self