Post #412: : post_00413
๐ท๏ธ Tags
macro python-scripting intermediate solved
โ๏ธ Related PME Features
- Macro Editor
- Python Scripting
- Command tab
๐ฌ Content
Nanomanpro:
Is it possible to use this kind of code as โPropertyโ? I mean ability to turn on and off โWireโ using just one button.
Thx.
Hi, try this code in Command tab:
meshes = [o for o in bpy.data.objects if o.type == 'MESH']; global show_wire; show_wire = meshes and not meshes[0].show_wire; [setattr(m, "show_wire", show_wire) for m in meshes]