Blender - make ''bpy.context.window.screen = scrn'' work in python script
$30-100 USD
Cancelled
Posted over 11 years ago
$30-100 USD
Paid on delivery
Solve this:
When pasted into the Blender 2.60 python console the following code works perfectly to change from the 'Default' screen to the 'Video Editing'. However, when I input the created blender file 'blender [login to view URL]' the screen stays as the 'Default'.
import bpy
for scrn in [login to view URL]:
if [login to view URL] == 'Video Editing':
[login to view URL] = scrn
if showPrint:
print("scrn: ", scrn)
bpy.ops.wm.save_mainfile(filepath="/test/[login to view URL]", check_existing=False)