Grasshopper

algorithmic modeling for Rhino

can anyone direct me to a tutorial, or explain how I would go about extracting the x,y,and z coordinates of point.

I want to set up a logic based on the Z coordinate...is this even possible?

Specifically, I'm trying to create a definition that will allow me to move a series of planes different amounts in the x or y direction, based on there heights [z].

So for example if the plane is 3' high or less it will move only 1' in the x and/or y direction
if the plane is between 3'-5' then it will move 2' in the x and/or y direction
if the plane is between 5'-10' it will move 3' in the x and/or y direction

thoughts?

Views: 11176

Replies to This Discussion

Hi Ryan,

you can do this in two basic ways:

1) Use the Decompose Point component (icon contains three arrows moving from a point to "x", "y" and "z" letters)

2) Use an expression component with the following expression (assuming you named the input "pt"):

pt.z

--
David Rutten
david@mcneel.com
Poprad, Slovakia
thanks so much! i totally blanked out on that component!
Hi Ryan,

Have a look at the enclosed definition, It moves planes as per the example you gave.

Cheers

Evert
Whooops, and the attachment!
Attachments:
great thanks!
Thank u David Rutten

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service