Created
January 27, 2017 15:18
-
-
Save howiemnet/c6ec718448bf8f7e21fe846a8873922e to your computer and use it in GitHub Desktop.
Blender Screen hotkeys script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
class SetScreenLayout(bpy.types.Operator): | |
"""Switches to the screen layout of the given name.""" | |
bl_idname="screen.set_layout" | |
bl_label="Switch to Screen Layout" | |
layoutNamme=bpy.props.StringProperty() | |
def execute(self,context): | |
bpy.context.window.screen=bpy.data.screens[self.layoutNamme] | |
return{'FINISHED'} | |
def invoke(self,context,event): | |
return self.execute(context) | |
bpy.utils.register_class(SetScreenLayout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was snagged with eternal thanks from user blitzen on BlenderArtists - https://blenderartists.org/forum/showthread.php?246232-Screen-Layout-Hotkeys