08-12-2021, 06:44 PM
Hi Yohan,
It is not possible to get the original file path from an object component, but you can get the parent item in the tree using something like this:
Albert
It is not possible to get the original file path from an object component, but you can get the parent item in the tree using something like this:
Code:
part_parent = part.Parent()
if part_parent == object:
print("The part parent is the object")