📋 Metadata

💬 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


🔗 View on Blender Artists