How do I disable a control?

Moderator: Moderator Group

How do I disable a control?

Postby ericseipel » Wed Sep 23, 2015 7:04 am

To the point, is there a way to disable a control such as a custom script button or a fader? I know about Hide ie WDControlHide,Fader1, and it is effective at not allowing changes, but it is ineffectual in relaying what the current toggle is, or what the fader position is in the moment, while I don’t want a user interacting with them.

I can provide a more detailed explanation of the why if you think that would help.


Thanks for any insight.
Eric
ericseipel
 
Posts: 14
Joined: Wed Aug 26, 2015 8:20 pm
Location: Philadelphia, PA, USA

Re: How do I disable a control?

Postby malkuth23 » Wed Sep 23, 2015 8:10 am

I probably need a better description of what you are looking for.
Not sure what you need exactly.
Matthew Newman-Saul
Theatrical Concepts
mattns@theatrical.com
User avatar
malkuth23
 
Posts: 354
Joined: Tue Apr 20, 2010 7:14 pm
Location: New Orleans, LA

Re: How do I disable a control?

Postby Benni_M » Wed Sep 23, 2015 8:35 am

You can make a Fader Input Node and a Device Control Output Node and Enable or Disable the Output Node.

Greets,
Benni
Benni_M
 
Posts: 148
Joined: Thu Apr 12, 2012 3:45 pm

Re: How do I disable a control?

Postby Markus Zeppenfeld » Wed Sep 23, 2015 12:58 pm

Hi Eric,

there is no "official" way of preventing items from being used.
Thinking of custom script buttons, you could use an if-clause in order to check if you should be allowed to click or not.

I often build a "lock-variable" which is checked in order to find out if the command should be launched or not.

Cheers
Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: How do I disable a control?

Postby ericseipel » Wed Sep 23, 2015 5:44 pm

Markus Zeppenfeld wrote:Hi Eric,

there is no "official" way of preventing items from being used.
Thinking of custom script buttons, you could use an if-clause in order to check if you should be allowed to click or not.

I often build a "lock-variable" which is checked in order to find out if the command should be launched or not.

Cheers
Markus


That is my current solution.

Found myself in a sticky situation (Infinite loop) with a toggle. In the on click, if locked {do nothing, toggle the button back to previous state (for visual)}. and then it loops when it checks the on release with the same if check :) for the time being ill just hide the controls.

Background:
I like the projector node, but i like the idea of being able to have more detailed control of the pjs on a mobile. The christie M series has Art-net control, one of the channels locks all changes, and the other locks lens movement, additionally i have a bool that will be used to lock everything except shutter and freeze. I think the hide will be sufficient, then just stick a graphic with dummy buttons / faders behind for ascetics.

Thanks for your time and help.
ericseipel
 
Posts: 14
Joined: Wed Aug 26, 2015 8:20 pm
Location: Philadelphia, PA, USA

Re: How do I disable a control?

Postby Markus Zeppenfeld » Thu Sep 24, 2015 9:04 am

Hi Eric,

there are different commands which execute the script while releasing or not. This way, you may not lock yourself into the loop.
Please keep in mind, that hiding controls does not apply for the web server.

Cheers
Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 20 guests

cron