[Bf-committers] VSE Scene strip shortcut idea

Dan Eicher dan at trollwerks.org
Wed Mar 7 11:19:06 CET 2012

You'd think this would be a simple three line operator but it turns
out you can't set a screen from within an op (and have it updated) so
all you do is end up updating the current context.window.screen.scene
then when the op finishes it switches to the desired 'Default' screen
(which also can't have its scene set from within an op).

>From rna_Window_screen_update:

/* exception: can't set screens inside of area/region handers, and
must use context so notifier gets to the right window */

Trying to set bpy.data.screens['Default'].scene first also does the
same thing (but doesn't ever update) so you can't set this and then
set the window.screen to it after. This one seems like a real bug
though since rna_Screen_scene_update() is setting the scene on the
context instead of the screen which is what's being asked of it.


More information about the Bf-committers mailing list