Post #3481: : post_03484
🏷️ Tags
macro python-scripting beginner solved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 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