PyRNA
authorCampbell Barton <ideasman42@gmail.com>
Fri, 5 Jun 2009 12:48:58 +0000 (12:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 5 Jun 2009 12:48:58 +0000 (12:48 +0000)
commit52d8e64b857530c85efb6e1c38b4b4fd40d9c345
tree41083ff76cc35ffd34cbd13fce5c163f754033f2
parent13376a903b6167f26c04e14bad344374469fef25
PyRNA
- Support for python to convert a PyObject into a collection (uses a list of dicts - quite verbose :/)
- Operators can now take collection args when called from python.
- Support for printing operators that use collections (macro recording).
- Added RNA_pointer_as_string which prints all pointer prop values as a python dict.

Example that can run in the in test.py (F7 key)
bpy.ops.VIEW3D_OT_select_lasso(path=[{"loc":(0, 0), "time":0}, {"loc":(1000, 0), "time":0}, {"loc":(1000, 1000), "time":0}], type='SELECT')

for some reason lasso locations always print as 0,0. Need to look into why this is.
source/blender/makesrna/RNA_access.h
source/blender/makesrna/intern/rna_access.c
source/blender/python/intern/bpy_operator.c
source/blender/python/intern/bpy_operator.h
source/blender/python/intern/bpy_operator_wrap.c
source/blender/python/intern/bpy_rna.c
source/blender/python/intern/bpy_rna.h
source/blender/python/intern/bpy_ui.c