Select to view content in your preferred language

Analysis widget Add support for parameter validation, esp enabled

87
0
a week ago
Status: Open
DougBrowning
MVP Esteemed Contributor

Need a way to hide some parameters when they are not relevant.  Works in Pro but not seeing it work in ExB analysis widget.  I mostly want enabled so I can turn some off params but not sure if other things work or not?  One tool I limit to 1 polygon selected for example.

def updateParameters(self):

        # Modify the values and properties of parameters before internal

        # validation is performed.

        if self.params[2].value:

            self.params[3].enabled = True

        else:

            self.params[3].enabled = False

        return

DougBrowning_1-1748463490437.png

 

thanks