Author Topic: How can I get UID of a specific node?  (Read 964 times)

As title. I am new to Substance, thank you so much!

Hello Tracychen,
You mean with Pysbs, right?
It depends on your use case, but the UID is a member of the class SBSCompNode which the highest object for any kind of node in a graph.
A simple snippet example to list all UID node:
Code: [Select]
from pysbs import context, substance
ctx = context.Context()
doc = substance.SBSDocument(ctx, "")
graph = doc.getSBSGraph('New_Graph')
nodes = graph.getAllNodes()
for node in nodes: