Grasshopper

algorithmic modeling for Rhino

Changing points coordinates with expression editor

Is it possible? For example I would like to have the Y coordinate of input points 2 units smaller. I realize it can be easily done using more components, but I would like to know if there is a more compact way.

Thanks!

Views: 2312

Replies to This Discussion

Found it! It looks like x.x, x.y and x.z allows you to access and modify x,y and z coordinates

You can also make use of the UnitX, UnitY and UnitZ global vectors.

for example

x-UnitY*2

Hi Danny, thanks! This way seems more logic and quick. 

Or type a vector directly using curly brackets.

x - {0,2,0}

--

David Rutten

david@mcneel.com

Thanks, it looks like I will be using less and less components!

Why not just learn C# and only have 1!

Just kidding :)

Bear in mind that you have more clicks for a user to alter data buried in <expressions>. Also If some one else has to review you definition for any reason its easier to follow the logic of dedicated components.

Will keep this in mind! Anyways, is good to know what the options and possibilities are,so that I can chose the one that works better for each case

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service