Post #5222: Use list comprehensions.
📋 Metadata
- Author: Pluglug
- Date: 2024-09-01 17:13:26
- Type:
answer - Quality Score: 7/10
- Reply to: post_05220
- Replies (3): post_05224, post_05232, post_05670
🏷️ Tags
macro python-scripting intermediate
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
Use list comprehensions.
[bpy.ops.object.move_to_collection(collection_index=0) for obj in bpy.context.selected_objects]
❤️ 1 likes