Post #2353: ![](https://blenderartists.org/user_avatar/blenderartists.org/anphung/48/39426_2

๐Ÿ“‹ Metadata

๐Ÿท๏ธ Tags

stack-key hotkeys workspace-switching intermediate solved

  • Stack Key Editor
  • Python Scripting
  • Hotkey Configuration

๐Ÿ’ฌ Content

anphung:

How would I make a button to toggle between 2 workspaces?

Add a Stack Key with 2+ slots. Eg 2 slots (Command tab):

C.window.workspace = D.workspaces['Default']
C.window.workspace = D.workspaces['Scripting']

anphung:

Or between any 2 commands in general?

Depends on the commands.

anphung:

Usually, I just use a Stack Key, but it doesnโ€™t remember the current state/ value/ property.

Can you post an example? It should remember the state.

anphung:

How do I make buttons that switch between the tabs on the side here?

I donโ€™t think that this is possible.


๐Ÿ”— View on Blender Artists