Grasshopper

algorithmic modeling for Rhino

I've often used a Boolean switch parameter
 to force Recalculation of a components solution.
 A lot of other people seem to do this too.
Say if I want to write to a text file from a
component. A true boolean parameter will
tell the componen to output the data.
However to do this requires the user to double
 click the Boolean parameter twice. I.e
 true false true. Is it possible gh can have an
event parameter I.e a play button icon that can
 be attached to a component to tell it to recalculate
if a user presses the button?

Views: 222

Replies to This Discussion

Good idea. I'll add it to the list.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
How about just selecting the object in question, then right click on the play button? or having something like a Shift+Ctrl+Alt Click on the component in question expire it.
i had this same issue and what i did was create a form that runs in it's own thread and window with a play, pause, reset button and time interval input. that way when you are running a simulation that refreshes fast the play and pause controls do not get locked up because they are in a separate UI thread and having a button for reset is nice too. i can post the code later, it solves a few issues with the current timer object being unstable
Nice, im doing something similar with my component running a background thread to an external program. It was very tricky and I still dont know enough about threading in general :(

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service