add in convenience var 'D = bpy.data' - to the python console, add note for C, D - in initial message.

This commit is contained in:
Campbell Barton
2012-06-20 08:49:59 +00:00
parent 586f202eac
commit b0b96bd9a1

View File

@@ -96,7 +96,10 @@ def get_console(console_id):
namespace["__builtins__"] = sys.modules["builtins"]
namespace["bpy"] = bpy
# weak! - but highly convenient
namespace["C"] = bpy.context
namespace["D"] = bpy.data
replace_help(namespace)
@@ -305,6 +308,7 @@ def banner(context):
'OUTPUT')
add_scrollback("Convenience Imports: from mathutils import *; "
"from math import *", 'OUTPUT')
add_scrollback("Convenience Variables: C = bpy.context, D = bpy.data", 'OUTPUT')
add_scrollback("", 'OUTPUT')
sc.prompt = PROMPT