[Bf-python] Scene not changing in python script
John Villar
johnvillarzavatti at gmail.com
Mon Sep 19 20:33:21 CEST 2011
Hello everyone, i'm new on this list! I posted this as a bug on the blender
tracker but Bastien pointed me here to see if this is a bad usage of the API
issue.
Currently i'm writing a blender exporter for JSON and my own binary version
of JSON and i'm having a problem when switching scenes to export all my
file's scenes. The fact is that i can't poll edit modes from objects that
are on another scene besides the one currently selected on the editor.
I have done this with the scene i want to export:
bpy.context.screen.scene = scene
bpy.context.screen.scene.update()
But to no avail. Anyone has any idea what can i do to switch the scene via
python? My exporter is here http://code.google.com/p/blender-machete/ feel
free to grab the source.
An here's a pae.st of the code http://pae.st/PdWF/ so you can edit it in
there.
John Villar
Cell: (058)(416)926.86.45
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20110919/96e82177/attachment.html>
More information about the Bf-python
mailing list