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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user