I'm pretty new on Blender and I have a problem.
I imported a quite huge model hierarchy and some node contains no mesh.
Is there a way to automaticaly delete all node that does not have mesh ?
Thanks.
I'm pretty new on Blender and I have a problem.
I imported a quite huge model hierarchy and some node contains no mesh.
Is there a way to automaticaly delete all node that does not have mesh ?
Thanks.
OK. I just learn Python and developped this script :
import bpy
This script selects all objects hierarchy that have mesh on them
After executing this script, just invert the selection (ctrl+I) and delete (X)
for o in bpy.data.objects:
if o.type == "MESH":
obj = o
while True:
obj.select_set(True)
obj = obj.parent
if obj == None:
break;