Grasshopper

algorithmic modeling for Rhino

I'm trying to create a tool that would allow me to manipulate an array of objects within 12" x 12" x 1.5" box. I'm part of the way there but I'm not able to get one part of the tool working...Currently I can get everything to array equally but I would also like to modify the spacing between the objects exponentially so that each successive object is spaced further apart than the last one by a specified factor. How do I implement this? Thank you!!

Views: 3192

Attachments:

Replies to This Discussion

There are many ways to do this.  I used 'Graph Mapper' initially but accidentally over-wrote it.

Attachments:

'MA (Mass Addition)' or 'Graph (Graph Mapper)', 'Raw' or 'ReMap':

Attachments:

Thanks for sharing! I'm still having trouble implementing this into the code that I have. I want to be able to modify the spacing of my objects by adding a factor of exponential spacing without altering the overall size of the array. 

Can you be more specific about "a factor of exponential spacing"?  Did you try the remapped Graph Mapper, moving the point around to change the shape of the graph curve?

How about this approach?  (ParametricGrid_2017Jun6a.gh)

I would define the controlling parameters a little differently though, specifying maximum dimensions overall and calculating the dimensions of the grid rectangle. (ParametricGrid_2017Jun6b.gh)

P.S.  The 'Pow (Power)' component can be replaced with any 'Expression' you wish.

Attachments:

Or, to keep the 'BoxRecs' within the max X/Y dimensions overall:

  • 'Rect.x' = ('X max' - 'Cube Width') / 'Cols'
  • 'Rect.y' = ('Y max' - 'Cube Length') / 'Rows'

P.S.  More interesting (interactive) when 'Cube Width' and 'Cube Length' are sliders...

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service