Grasshopper

algorithmic modeling for Rhino

Probably very simple problem but I don't know how to solve it.

I have moved UCS at the foot of the point cloud building, The Rhino point ID shows correct values of 0,0,0 while Gh still refers to the previous World values. How to make Gh reading current Rjino UCS values?

Views: 724

Replies to This Discussion

Grasshopper does not concern itself with C-planes as they are viewport dependent. UCS doesn't show up in my command line autocomplete nor in my Helpfile, what command did you use to assign a UCS?

I have used 'CPlane origin' from Rhino UCS toolbar.

I am only interested in Z values so I can use add/subtract in Gh.

You can use a scripting component to output the c-plane of your current view, then use the orient component to transform the points from this plane to the World XY plane. This will get you the coordinate values relative to the c-plane.

The minimal code you'd need on a c# component:

 A = RhinoDocument.Views.ActiveView.ActiveViewport.ConstructionPlane();

If you change your c-plane you'll have to run this component again.

Vincent. Thanks for the advise. It is not a big deal finding workaround. It's just something I wasn't aware of.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service