Importing Objects from Rhino to Grasshopper Automatically

Hi there,

Recently im working on a project that requires object integration from Rhino to Grasshopper. As far as i know intergrating an object/point in rhino to grasshopper can be done selecting “Set one Point” option and than selecting releated object that you want to work into it (Check figures).

Is there a way to do this process automatically or in a simply way. Because i have more than 400 points to work on it and dont want to add them seperately (It will take for


ever).

1 Like

You can refence multiple points …just below set one point or you could reference a layer with the pipeline component.

Hi @Ozan_Cem_ÇİÇEK , welcome!

There are a lot of ways to do this:

  1. Pre-Select all points in Rhino, Then, Right click point container in GH (per your screen shot) and choose “Set Multiple Points”

  2. In GH use a Geometry Pipeline component:

  3. In Rhino 8 WIP (Query Model Objects Component)

  4. In Elefront Plugin (Reference By Layer, Reference By Name, Reference By Type)

Graph Space:

Model Space (Points on different layers and one group is not on a layer but has the same object name):

20230816_Reference_Points_Response_01a.gh (11.8 KB)

yeap that worked but i must get coordinates of each point individualy. So i managed to get all coordinate datas of points but didnt figure out how to seperate them like point A x,y,z / point B x,y,z etc.

Note that the GH canvas Params return ephemeral UUIDs in the GH document that refers to the Rhino Objects. These change everytime the GH definition is recomputed, and are tricky to access Rhino UserText with.

Changing sc.doc to the Rhino document, and using rs.ObjectsByType returns the real unchanging Rhino objects’ UUIDs. It has a selected filter built in, and it’s easy in Python to write a list comprehension, gen exp, or even a generator for more complicated filtering however you like, e.g. by Layer.

1 Like

Different ways to approach but one method:

  1. You can deconstruct the referenced points and use the flip matrix component to return XYZ as individual line items per point.

  2. Use “Points To Numbers” with an XYZ mask input and follow that with a partition list component.

  3. Exploit the point list as text and split it at the commas.

20230816_Reference_Points_Response_01b.gh (25.8 KB)

1 Like

that really helped a lot thanks for the detailed instructions, you made my day sir :pray:

1 Like

Happy to help! Happy point referencing

1 Like