Grasshopper

algorithmic modeling for Rhino

If I have to type i-1 into an expression one more time i might...

After a great exchange with Michael and Pieter and others yesterday, i realized this morning that it wasn't so cozy to have to make a list length component and subtract one from the output.

 

I'm all about zero-based arrays and all - don't get me wrong. Just wanted something a bit more cozy... see attached.

 

dragging the .ghuser file into your grasshopper window should install it to your Set/List with a custom icon.

 

Views: 440

Attachments:

Replies to This Discussion

Thanks gotjosh,

I would recommend changing this from Discussion to Sample and Example Files, as it will and around longer in recent items there. 

If your interested Micheal Pryor has a very similar set of ghuser components that handle Start, Mid and End values and indices of lists

http://www.grasshopper3d.com/forum/topics/improved-list-sme 

 

Personally I prefer to use the shortcut "-1" from the Keyword Search facility to get a subtraction component with 1 already assigned to the B input.

a bit more concise, and avoiding the i-1

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