I have found the following Python code, which gives you all the GUID of an opened file.
“”“Provides a scripting component.
Inputs:
x: The x script variable
y: The y script variable
Output:
a: The a output variable”""
author = “david.mavrov”
version = “2019.08.23”
import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino as rc
sc.doc = rc.RhinoDoc.ActiveDoc
allObjects = rs.AllObjects()
print allObjects
AllObjects = [str(guid) for guid in allObjects]
However, every time I open a new file, or change the content in Rhino, I have to manually recompute. Any way to integrate this into the component itself?
GUID.gh (1.3 KB)