Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I am new to Grasshopper and have a question about baking. I can display vectors in GH, using command "vector display". But I also want to bake it to Rhino. That is, I can still see the vectors after I turn off preview in GH. But now after I clicked "bake" I still don't see anything in Rhino. Does anyone know how to resolve this? Thanks!

Views: 6378

Replies to This Discussion

Rhino doesn't have vector geometry, so I think the easiest is just to make Lines and bake those. You'll have to assign arrowheads yourself, which can be a lot of repetitive work. You can also try to create dimension objects in GH and bake those.

Hi Lydia

     Like david said,Rhino doesn't have vector geometry, so I think the easiest is just to make Lines and bake those.

Then use rhinopythonscript (EditPythonScript)

import rhinoscriptsyntax as rs
lines = rs.GetObjects("Pick some lines", rs.filter.curve)
if lines:
for i in lines:
rs.CurveArrows(i,2)

Also the 'decorations' option on that bake window should have arrow options. I forgot about that.

Thanks for your reply! I've tried that, but it seems I can't change the arrowhead size as what we can do in vector display. Some of my lines are really short, so the arrowheads looks too big.

Thanks! I tried your script and it works. But I was wondering if there is any way to change the arrow size? Since some of my lines are really short, the arrowheads seem to cover them entirely...

"hi Lydia    Check the attached file"

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service