Grasshopper

algorithmic modeling for Rhino

Hello there,

 

First time on this list,

 

I'm trying to get a list of (double) values from pd via gHowl UDP/OSC. Everything works connectionwise, but I need to accumulate (and index in the order they arrive) the values in a list as they are being streamed into grasshopper. The values keep getting replaced at index 0.

 

I've been going through the available docs and the forum and found no hint as how to buffer the values in any way... Well, the series component actually stores the values, but indexed in ascending value order, and it's crucial that are stored with index in the order they arrive.

 

The valuetracker almost does the trick, but only graphically and way too slow.

 

What am I missing?

 

cheers, and thanks for an amazing program!

Views: 300

Replies to This Discussion

Does it work to graft the input?  Just guessing without anything to look at.

 

Chris

No, unfortunately, grafting does not work. Maybe I was a little unclear, it's a bit hard to explain.

 

Here's an example:

If you have a look at the gHowl example "gHowl_OSC_Mouse2D". In the second (send) group you have an MD Slider. When you move the point on the grid you see that the values change in the yellow panel output for list items index 1 & 2.


I would like to find a method to not change the values, but add a new index and list item for each change made with MD slider. I'm fully aware of the fact that this would generate a tremendous amount of data.

 

When I eventually have a list with 128, 256, 512 or maybe 1024 items, I would like to create a line with these values as points.

 

Though, making the line from values is no prob, I've already done that with the series and range components.

 

There must be a way of storing numbers in some kind of buffer somewhere, or what? I know I could save my data from pd as a file and import it in grasshopper, but the nice thing with the udp/osc connection is the realtime exchange.

 

Also, I could write a VB/C# script, but before I spend several weeks learning and implementing this, I figured I'd ask here because there simply HAS to be some easier way to do it, like a check box that says 'keep values' or something. As I said, it's noob question... oh well.

 

Thanks for any help, it's driving me nuts.

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