Grasshopper

algorithmic modeling for Rhino

Hi I'm attempting to put together the start point of a line using Point XYZ but when I extract the X from another source the value is changed to absolute value.  This is most decidedly not the X value of the source point.  Is there a way to get the actual value? Maybe I'm missing something simple.

Thanks,

Eric

Views: 801

Replies to This Discussion

That doesn't sound right. Can you post a screenshot of your definition? Keep in mind that the Point XYZ component takes numbers rather than points as inputs. If you want to construct a point A that has the same X coordinate as another point B, you will have to first use "Decompose" to get the X coordinate of B as a number. 

That was it, thanks.  I should have been using Decompose.  There is much to learn.

It is helpful to look at the tooltip that appears when you hover over a component input or output. It will tell you what it is supposed to be, as well as what data type it is expecting/outputting. Grasshopper in general performs lots of automatic conversions - between points and vectors, or integers to booleans, etc. Most of the time this is useful, but in this case it confused you because of the automatic conversion of the point to a number (which is why the point XYZ component actually produced a point, just in the wrong place.)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service