Post #26: : post_00031
🏷️ Tags
macro scripting intermediate unsolved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
- Property Editor
💬 Content
roaoao:
This feature is already implemented. You can achieve that using simple python code:
Yep that would work with additional condition [if obj.select]
But the wire was just example. The way I setup obj display mode is by using custom:
**L.props_enum(bpy.context.object, ‘draw_type’)
**So now I would have to split it in to 4 commands (bounds, wire, solid…) as in your example. But if there was option for each menu item: ‘iterate over selection’, this would be great. I would work like this
for obj in selectedObj’s:
context.scene.objects.active=obj
doThatStuffFromMenuItem
I guess it would not work for anything else except commands, but still cool thing to have. I can see this as a way to quickly automate some repetitive tasks, which has to be done on many object. Almost macro recorder 