Grasshopper

algorithmic modeling for Rhino

Hi there,

Does anybody know a way to create a (python) scriptable button ? I'd like to clear the way to use some scripts in the spirit : "click on it, job is done" so I tought having each time a true/fals button linked to a script is not the best way when I give the GH file to people no used to it.

I dream of a big squared button with a beautiful picture on it containing the script.

As each time I ask for something I learn it already exist (that prove the very good job made !), I wondered if this one does already existe, too.

Views: 629

Replies to This Discussion

In version 0.9+ there is a new Boolean button that will only output True whilst pressed, as soon as you release it will revert back to False.

You can obviously change this behaviour to the other way around.

Is this what you mean?

Not exactly, I would like to put my script in the button : I use script which are activated by pressing this boolean button, so I'd like to use one object (scriptable button) rather than the boolean button + the script object.  For simple task like saving data file or current configuration.

Dear Danny

i want to ask something , is it possible to connect number-slider to Button (default is false )and when i change the slider it turns true ?

Thank you very much

True and False can be represented by numbers. 0 is False and anything other than 0 is True.

So as your question reads this applicable.

Or are you thinking that when you change the slider you get True for a single solution and then it returns to false?

are you thinking that when you change the slider you get True for a single solution and then it returns to false?

yes !! this is exactly what i want ? is it possible ?

Hi Ayman, did you ever find a solution to this problem? I find my self in the same situation.

if I understand what you are needing... you should look at the "Bang" component in the Firefly plugin.

By looking at the description it might actually work, ill look into it when i come home!

Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service