I'm trying to search for all items in bpy.context.scene that have same name, but different suffix number (bpy.context.scene["list_1"], .["list_2"] etc.
It works if I search for objects under bpy.context.scene.objects:
for ob in bpy.context.scene.objects:
if "list" in ob.name:
print("woohoo!")
But as for items that are stored under scene, I get this error: "TypeError: 'Scene' object is not iterable"
How can I search through these items and remove them from scene with a script? Some have used len() and range() with good result, but I haven't managed to make it work?
Any ideas? :)