Page MenuHome

mode_set() not working in background mode, Scene change doesn't change mode either
Closed, ResolvedPublic

Description

--- Operating System, Graphics card ---
Windows 7

--- Blender version with error, and version that worked ---
2.67

--- Short description of error ---
mode_set() seems to change nothing if Blender is running in background mode (cmd), editmode_toggle() does however.

If one changes scene in UI, Blender changes context mode to object in the former scene. If I change bpy.context.screen.scene with a script in background mode, mode doesn't change.


--- Steps for others to reproduce the error (preferably based on attached .blend file) ---

Command line used:

blender -y -Y -b file.blend -P script.py

files attached

Event Timeline

codemanx edited a custom field.May 24 2013, 1:01 AM
codemanx attached 1 file(s): F23198: file.blend.
codemanx attached 1 file(s): F23199: script.py.

Assigning to Campbell, he knows this stuff better than anyone else :)

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Jun 3 2013, 12:22 AM