📋 Metadata
- Author: roaoao
- Date: 2016-10-31 12:44:00
- Type:
answer - Reply to: post_00411
- Replies (1): post_00413
💬 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]