moved the following into the screen context rather then the view3d context so python scripts can access these when running in the console.

"visible_bones", "editable_bones", "selected_bones", "selected_editable_bones", "visible_pchans", "selected_pchans", "active_bone", "active_pchan",

added "C" to the consoles namespace, temp hack but useful
This commit is contained in:
2009-10-29 19:59:38 +00:00
parent 099438f087
commit 8c707b2a5f
4 changed files with 161 additions and 152 deletions

View File

@@ -133,6 +133,7 @@ class CONSOLE_OT_exec(bpy.types.Operator):
return ('CANCELLED',)
namespace, console, stdout, stderr = get_console(hash(context.region))
namespace['C'] = context
# redirect output
sys.stdout = stdout