Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- prefix = "DEL__"
- changed = []
- for coll in bpy.data.collections:
- if coll.hide_render:
- if not coll.name.startswith(prefix):
- coll.name = prefix + coll.name
- changed.append(coll.name)
- else:
- changed.append(coll.name) # already prefixed
- if changed:
- print(f"Marked {len(changed)} collections (prefix='{prefix}'):")
- for n in changed:
- print(" ", n)
- else:
- print("No collections with render disabled were found.")
Advertisement
Add Comment
Please, Sign In to add comment