Grasshopper

algorithmic modeling for Rhino

I love graph mapper component as it provides A LOT of user control for "subtle" adjustment of the designs.
My wonder is if it is possible to add more control points with their respective handles to the "bezier" graph type.
I know it could get out of hand very easily, but I think it would be wonderful.

Views: 3370

Replies to This Discussion

I agree it would be nice to have a type in Graphmapper where you have more control over the curve. If its not enough control though, you can always use a curve drawn in Rhino with as many control points as you want and then use it for remapping the same way you would a graph mapper.

1. Draw curve in top view using X and Y axis as you coordinate system (same as in graph mapper)

2. Use your input as X coordinates, remapping them to fit the length of the curve you drew

3. Draw a line in Y direction for each X coordinate

4. Find the intersection point of curve and those lines

5. extract Y coordinate of intersection point

You have now made a graph mapper that works with any curve drawn in Rhino :)

Like so. You can adapt the remapping to allow for different mappings of the output values. You need to bake or set the curve again to get the handles for it.

Attachments:

Since I will probably use this myself a lot, I made a slightly better version and a User Object out of it. It now has an optional plane input, so you can even graph map 3-dimensional curves in multiple planes at once.

Attachments:

It's not possible with the existing one. I'm working on much better graph UI for GH2.

Uhh, that DOES look much better :)

ps: I dont think any of GH is "garbage" - have you worked with other visual programming tools? - Grasshopper is by far the nicest to use. But you are right, there is some areas that are not ideal in terms of UX. Usually the ones with custom UIs, like Image Sampler, Gradient, Color Picker, etc. which usually would be nice to be able to be controlled parametically too. Maybe they could have an "options" input a bit like Mesh Brep, where you can set all the options parametically, but it also works without it and you can set things using the UI!?

Other approach:

Attachments:

Now that is a great approach, it did not occur to me to use this, thanks

Nice, I really like the simplicity.

Wonderfull approaches.
Thanks to all.
David, I´m relly eager to try GH2!!

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