Python in Grasshopper (guid and geometry)

Dear all,

It’s quite confusing dealing with grasshopper and rhino and switch in between sometimes, so we have some question as below see if there’s someone can explain more:

  1. What’s the common practice to work with geometry in grasshopper python, use rhinoscriptsyntax? scriptcontext or Rhino Common, or others? is there any strategy for this?
  2. When dealing with rhinoscriptsyntax, the default python component takes input to be guid. If we give a type hint to the input say “Curve”, then it will become a Rhino Geometry object. How do we convert this Geometry back to Guid in order to use rhinoscriptsyntax?

Thanks

2 Likes