Hi @Motion4D,
thank you for reaching out to us. The answer to your question is C4DAtom.FindUniqueID
. The topic has been discussed just yesterday here and also a couple of times in the past; you might find this thread informative. I also attached a small example, please feel free to come back with any remaining questions.
Happy holidays,
Ferdinand
import c4d
def main():
"""Entry point.
"""
if op is None:
raise RuntimeError("Please select an object")
# Get the unique ID attached by MAxon to each node. See linked threads
# for details.
uuid = op.FindUniqueID(c4d.MAXON_CREATOR_ID)
print ("node:", op)
print ("uuid:", uuid)
print ("raw uuid:", bytes(uuid))
if __name__=='__main__':
main()
node: <c4d.BaseObject object called Cube/Cube with ID 5159 at 2488003778176>
uuid: <memory at 0x000002434A4CD198>
raw uuid: b',\xf0]w\xccG\x14\x0c\xfd\x8c\xfd.\xb8U\x00\x00'
>>>