I’m looking for a component that when clicked sends a value downstream. A button can’t be used because it send a true value followed by a false value at relase. The boolean toggle is unintuitive.
So basically I want a button that just forces the component to recalculate. For all I care it can generate whatever value it want - I just need it to trigger only once.
The reason is that I have a lot of completely independent processes in my grasshopper script that I need to be able to trigger. They need to not be on of off - they need to be triggered.
I have looked at the thread Single click button solved? - Grasshopper - McNeel Forum which didn’t really cover my question exactly. I basically look for a trigger, like the trigger component, but just as a button that allows me to do the triggering manually. Any advice?
I’m aware that the trigger can actually do exactly this, but I want to be able to control it from the Remote panel
There is an Expire Object component in Metahopper that can be himself triggered with a button.
You could use it to recompute one or several components of each of your independent sections.
I might be misunderstanding the case, but couldn’t one indeed use a Toggle, publish it to RCP (where it will be single click), and wire it up to whatever needs triggering:
Indeed, the long standing “double click Toggle” and “Button expires twice” issues continue to affect my daily Grasshopper as well.
Nice, wasn’t familiar with that one. Just in case you missed it though, one can also set the vanilla Button to only output True (or anything else), it’ll still expire twice though:
Here is my way to do it and still using the button is to combine it with Data Recorder, in this case you will always get a “True” outcome and pushes the definition downstream to re-calculate.
The double expiration keeps causing me problems, so in that case the toggle is a lot better.
I user HumanUI rather than RCP so the true only button will be my solution for now (it only expires once). It just baffles me that there is no real ‘trigger’-button in grasshopper.
I may have found a solution that doesn’t rely on humanUI and combines Anders input to another post about time triggering. This way I can force a single trigger of data. Like a remote controlled data dam that only react once on a true value