Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4131

How to properly interface with GUIDs

$
0
0

Hello

I am trying to understand how to properly interface with Rhino GUIDs in python. When I want to access the properties, whether geometric or otherwise, of the object the GUID represents should I create a new geometry from the GUID using CreateX and work with that in Python? This effectively duplicates the original geometry that the GUID points to, which seems odd, but works. If I want to work with the original geometry via the GUID, where can I find a list of methods for this? I found one such function I was looking for in RS: rs.CurveStartPoint and rs.CurveEndPoint.

These two discussions have been helpful:

https://discourse.mcneel.com/t/how-to-get-line-start-end-without-casting-it-into-curve/90452/11
https://discourse.mcneel.com/t/functionality-of-rs-coercex-methods/65813/2
but I am wondering if there is updated documentation I am missing.

Thanks for pointing me in the right direction of resources, and for general comments on the general approach to working with GUIDs.

Another side of this is how to send geometry through to Grasshopper through GhPython. Should I be using the GUIDs? Convert to geometry first? Somehow access the original geometry via GUID?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4131

Trending Articles