Imagine that Cylinder’s parent is a Plane and Plane’s parent is a Cube (in the picture). So please, could you tell me if there is any command (in the script) that does the following:
(aka) bpy.data.objects[‘Cylinder’].getFullHierarchy() which would return something like:
Cube/Plane/Cylinder
If there is no such command, what would could do the same functionality?
I tried this and I get an error at node.name: AttributeError: ‘NoneType’ object has no attribute ‘name’
I also tried just to output node and bpy.data.objects[‘Cube’] just as a print statement in a console and it shows this:
<bpy_struct, Object(“Cube”)>
<bpy_struct, Object(“Plane”)>
(so how it is supposed to be)
So this is very strange why the node.name doesn’t work
I also tried bpy.data.objects[‘Cube’].name and it outputs Cube (just fine)
On the other hand node.name gives me that error. (and they seem to be of the same type, so idk what is wrong)