Disabling a button or Hiding a Custom Script Button
Posted: Tue Jan 19, 2016 6:54 pm
I've come across a task where in the client needs to have access to a Widget panel.
There are a couple of buttons I'd like to have disabled unless some layers are active to screen. I tried the WDCustomScriptMuteClick Command via a NODE set up PBDeviceParameter - Script output IF - THEN statement. This I could not get to work successfully. I did find by reading through posts, that another user was encouraged to use the ControlShow / ControlHide solution. This works great, and solves my problem but does not look very nice, as buttons are appearing and disappearing. I also read this following post, (link below) a script used to disable a button with IF THEN statements. I dont think though this is exactly what I am looking for.
viewtopic.php?f=80&t=3714&p=11330&hilit=Mute#p11330
Have a great week everyone!! Thanks in advance for any input.
Best,
Chris
There are a couple of buttons I'd like to have disabled unless some layers are active to screen. I tried the WDCustomScriptMuteClick Command via a NODE set up PBDeviceParameter - Script output IF - THEN statement. This I could not get to work successfully. I did find by reading through posts, that another user was encouraged to use the ControlShow / ControlHide solution. This works great, and solves my problem but does not look very nice, as buttons are appearing and disappearing. I also read this following post, (link below) a script used to disable a button with IF THEN statements. I dont think though this is exactly what I am looking for.
viewtopic.php?f=80&t=3714&p=11330&hilit=Mute#p11330
Have a great week everyone!! Thanks in advance for any input.
Best,
Chris