Create Decimate LOD.py
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import bpy
|
||||
assets = bpy.data.collections['Assets'].children
|
||||
for asset in assets:
|
||||
materials = []
|
||||
for object in reversed(asset.objects):
|
||||
if(object.active_material in materials):
|
||||
bpy.data.objects.remove(object, do_unlink=True)
|
||||
else:
|
||||
materials.append(object.active_material)
|
||||
Reference in New Issue
Block a user