Hello there,
I've created a custom panel, and would like to have a block of information hidden by default, with a button that reveals it, and hides it. (The abs object has been named 'Tab.Advanced')
I've already created the choice constraint parameter, with the toggle button widget. The constraint has been set up as:
0 - Advanced
1- Hide
Here is the task I've assigned to the parameter:
if (this.getValue() == '1') {
ogscript.reveal('Tab.advanced');
}
if (this.getValue() == '0') {
ogscript.hide('Tab.advanced');
}
The button works, but the issue is, 'Tab.advanced' is immediately visible when you first open the grid file. Is there a way to have it hidden by default?
Thanks!