Post #2529: Will add an option to save the state for stack keys.

📋 Metadata

  • Author: roaoao
  • Date: 2019-07-19 08:47:56
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_02528

🏷️ Tags

stack-key python-scripting advanced solved

  • Stack Key Editor
  • Python Scripting
  • Command Tab

💬 Content

Will add an option to save the state for stack keys.
In the current version you can use this code in a stack key with 1 slot (Command tab):

is_solid = C.space_data.shading.type == 'SOLID'; C.space_data.shading.type = 'WIREFRAME' if is_solid else 'SOLID'; C.space_data.overlay.show_faces = is_solid; C.space_data.shading.show_xray = not is_solid; C.space_data.shading.xray_alpha_wireframe = 0.5 if is_solid else 0.0

❤️ 1 likes


🔗 View on Blender Artists