📋 Metadata
- Author: roaoao
- Date: 2020-07-30 13:27:01
- Type:
answer - Reply to: post_03478
- Replies (1): post_03484
💬 Content
Kim_Quyen:
for obj in bpy.context.scene.objects: if obj.name.startswith("Cube"): obj.select_set(True)I have this code, I want to enter it into the Macros to use, how to enter the right syntax ?
Use list comprehensions. Here is the code for Command tab:
[obj.select_set(True) for obj in bpy.context.scene.objects if obj.name.startswith("Cube")]
❤️ 4 likes