Select to view content in your preferred language

Analysis widget Add support for parameter validation, esp enabled

308
1
05-28-2025 01:18 PM
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

1 Comment
Wei_Ying

Hi @DougBrowning we do have logged enhancement request about this internally. It actually relies of analysis component team and we have raised attention to them.