blender/release/scripts/modules
Campbell Barton c508e6198a Python can now run operators with their own context (data context).
The aim of this is to avoid having to set the selection each time before running an operator from python.

At the moment this is set as a python dictionary with string keys and rna values... eg.

C = {}
C["active_object"] = bpy.data.objects['SomeOb']
bpy.ops.object.game_property_new(C)

# ofcourse this works too..
bpy.ops.object.game_property_new({"active_object":ob})

# or...
C = {"main":bpy.data, "scene":bpy.data.scenes[0], "active_object":bpy.data.objects['SomeOb'], "selected_editable_objects":list(bpy.data.objects)}
bpy.ops.object.location_apply(C)
2009-10-29 09:25:11 +00:00
..
bpy_ext ob.getChilren() often requested for 2.4x api, notice this is only 1 line of python. 2009-10-28 09:39:16 +00:00
autocomplete.py Added "scripts/modules" as permanent module search path. 2009-09-28 04:29:01 +00:00
bpy_ops.py Python can now run operators with their own context (data context). 2009-10-29 09:25:11 +00:00
bpy_sys.py Added "scripts/modules" as permanent module search path. 2009-09-28 04:29:01 +00:00
dynamic_menu.py - add torus back from 2.4x as an operator 2009-10-10 21:23:20 +00:00