Button implementation

I have been doing some testing inside Shapediver but I can’t find a way to set the “Button” component.

Any tip on how this can be done?

image

FYI. I am not trying to use any Kangaroo component.

The Button is a component that briefly switches a boolean input from false to true and then false again, in other words two successive changes. This behaviour cannot be supported on ShapeDiver, and likely the reason for using it would not make sense either in this context.

Can you describe in more details what you are trying to achieve so I can maybe suggest a different approach?

Thanks Mathieu, I am currently doing a fast True/False boolean manually.

I have sent you a PM.

I too have a need for button click,
Button click does quickly change from false to true but we are using
it to “freeze” 3d text until the button is clicked again.

We have tried using a bool toggle but since most end users are not grasshopper users
it gets confusing and a Button click is easy and intuitive
It would be very helpful to have button click supported.

The concept of “freezing” the state of a Grasshopper definition between successive calls to solve it does not make sense in the context of ShapeDiver. Every time you send a new request, it might hit a different Grasshopper end point and therefore not be aware of previous operations done by the user. If you want to implement a button-like behaviour, this would need to be done in your application (where you could store a state) using the viewer API for example.