GN Get Object name?

Is there any way with GN to get an Object or Instance name?

Afaik the objects name itself isnt available in gn.
But you can hand it over by a String input socket that you add as input and use a script to set each objs name.

import bpy
for obj in bpy.data.objects:
    for modifier in obj.modifiers:
        if modifier.type == "NODES":
            modifier["Socket_3"] = obj.name
1 Like