Momentary Push Button

Recommended Posts

Using BUTTON from tool box, we are able to toggle value between 0 and 1, its toggle button. I need Momentary push button, means it writes 1 value to channel up to kept it pressed. as soon as released it, channel valued should turn to zero. Also wanna to show different text for value 0 and 1. How can I make this?

Link to comment
Share on other sites

Use two actions on the same button.  Both should be quick sequence actions.  The first one would have the "On Mouse Down" checkbox that appears when you select Quick Sequence checked.  That one would have script like:

myChannel = 1
strCaption = "ON!"

Then the second action would not have On Mouse Down checked and would have:

myChannel = 0
strCaption = "Off"

Note if you want the button text to change if the channel changes outside of the button press, you either need to add it to script, or you can use a blank button, and then overlay a Descriptive Text Component on top of it.

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.