Change custom layout through python

Is there a way to change the custom layout through python now? I want to switch to a specific custom layout(Shader Editor on the right, Text Editor on the lower left, 3D Viewport on the top left) using a shortcut each time I open a .blend file.

Maybe, for now I can give a detour around this. You can make your workspace however you want it to be, save your startup file, then go to userpref->save & load->blend files, and uncheck ‘Load UI’. You won’t get the workspace that was saved in the .blend file though. I might look into this a little more later.

1 Like

Sweet, that’ll do it. Thanks!