Grasshopper

algorithmic modeling for Rhino

Hallo,

Any chance we can have a sort of live-input feature in grasshopper? maybe a "refresh every n milliseconds" feature on a scripting component, or a little box that continuously outputs floats from 0 to 1 in a specified time interval (a functionality copy-paste of the vvv lfo box)...

it would open up some less-static side of grasshopper.

I absolutely have no idea if it's too much to ask for, but it would be great.
I guess osc is too much to ask for, but i guess this can be built later.

Views: 947

Replies to This Discussion

Hello Dimitrie, today I finished theEngine component. It should refresh your whole canvas at some millisecond interval. See if it can be helpful.
Giulio,
absolutely fabulous. wonderful hacking. this makes me soo happy.
i've been looking through it and is this where the whole magic happens?

Grasshopper.Plugin.EH_InstanceServer.ActiveDefinition.NewSolution(true, Grasshopper.Kernel.EH_SolutionCause.CanvasEvent);

i guess it took some pretty patient reflectoring, hehe... it works great also. i can't wait to try it in a real-life situation. i mean this basically redefines every input-output notion of grasshopper out there - gone are the tedious hacks of getting something live inside it.
great work. i should stop now, i keep repeating myself.
and david, why didn't you sell this trick to us before?
Yes, that calls for a new solution. The difficulty was not really finding that line (it's quite easy to spot with the intellisense-like feature of GH), but more choosing the right timer. A first attempt with the System.Threading one was breaking GH too often. The Windows.Forms one is single-threaded with the GH canvas and works therefore more reliably. It only has a precision of 55 milliseconds, though.
Well, i never got through the first part - finding a way to call a new solution rebuild. but heh. and i really don't think the 55 milisec will be a problem for anyone. thanks again for the great work! i should work on my urban planning paper, but now i'm playing away with processing and etc into gh. i need to stop it and focus. really addictive! (i mean, remember how long it takes you to code a simple sphere distort thing in p55?)
Very Cool. Awesome solution. Some times hacks are ugly and some times the work almost too well to be called hacks. I think this is definitely one that works almost too well. I think I'm going to have to go back an revisit some my excel updates now (which currently qualifies as an ugly hack). Great work.
This is what I had been looking for as well. Well done. Now I can do automated demos in grasshopper.
Really amazing definition. Congrats. It's a great resource. Thanks again.
Thanks everyone. I'll soon post some new buffer components, which will store data between each refresh, and my flavour of "rendering sequence" component
Hello Giulio,

this is great! theEngine is what i have been waiting for.. simply like the metro object like in PureData.. this bring Grasshopper to really interesting grounds.

Thanks a ton for this,
ps. if anyone has a good reference for grasshopper inner calls and classes, functions it would be great to have for further hacking, development.

Keep good work!
Krystof

Giulio,

 

I know I am asking too much but is there a way to change the unit to microsecond?

 

I tried too look into your script but with my limited knowledge, I failed.

 

Many thanks,

 

Oskar

Hi Oskar,

 

the runtime uses milliseconds for this so you cannot change to microseconds.
What are you trying to do?

 

- Giulio
______________
giulio@mcneel.com

Postscript: please, do not restart such old threads. You can always start a new thread and link to this.

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