Grasshopper

algorithmic modeling for Rhino

I have objects oriented along a curve, but I would like to have them gradually get farther apart. Horizontal Planes has the objects placed equally, and I cant figure out how to divide them with an increased distance. 

I made a manual representation on what I'm trying to accomplish in this image. 

Help would be appreciated, 

Thanks.

Views: 994

Attachments:

Replies to This Discussion

Hi there - 

HFrames will always feed out a series of equally-spaced planes. To get a custom spacing, you'll need to use HFrame (singular) and feed it a list of numbers that gradually increasing in difference to each other. The easiest way to do this is by normalising the curve, and using the graph mapper to adjust the spacing of a list of numbers from 0 to 1. Alternatively, you can incrementally add increasing numbers together, and then scale the result back down to 1 (by dividing from the highest number.)

The graph mapper might give you more control, whereas the math provides a more... rigid definition of spacing. You can control the # of elements you want on the curve in each. I've uploaded an example to play around with :)

Let me know if you have any questions!

Attachments:

Thanks, I combined it with my own and it works!

However, I can't figure out how to get this system working with multiple curves. Do you know how I could change it to allow for this?

I'll attach the file below. 

Attachments:

All it should take is grafting the curves coming into the HFrame, so that the range gets applied to each curve (and then generates a set of planes per curve). This will be denoted as branches of a tree if you hover over the component output or put it in a panel.

If you've got other operations down the road, make sure to trim or graft your data trees appropriately so everything is matching. David has a great series of videos on data trees you can check out if you're interested in learning more. Best of luck!

Got it, thanks! And yes, I'll be sure to fix my data trees in the future this way. 

I'll definitely check out his videos, should help me better understand what I'm working on. 

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service