What am I doing wrong lol, I make a list of selected objects and want to .remove them from the list if they are not a mesh or a curve, but if I make 3 suns and run the script it doesn’t remove them all :S
import bpy
selected_objects = bpy.context.selected_objects
print("-----------------------------")
print("List len before: " + str(len(selected_objects)))
for obj in selected_objects:
if obj.type not in ['MESH','CURVE']:
selected_objects.remove(obj)
print("List len after: " + str(len(selected_objects)))