📋 Metadata
- Author: roaoao
- Date: 2020-01-10 10:22:51
- Type:
answer - Reply to: post_02955
💬 Content
anphung:
When I click on the ‘Wire’ item in the Display as dropdown while holding Alt, it applies to multiple objects at once, could you show me how to translate that to a command?
Yes, you can check E.alt == True value in Command tab:
setattr(C.object, "display_type", 'WIRE') if E.alt == False else [setattr(obj, "display_type", 'WIRE') for obj in C.selected_objects]
❤️ 3 likes