Blender Git Commit Log

Git Commits -> Revision 52d8e64

Revision 52d8e64 by Campbell Barton (master)
June 5, 2009, 12:48 (GMT)
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.

Commit Details:

Full Hash: 52d8e64b857530c85efb6e1c38b4b4fd40d9c345
SVN Revision: 20648
Parent Commit: 13376a9
Lines Changed: +162, -77

8 Modified Paths:

/source/blender/makesrna/intern/rna_access.c (+62, -1) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_operator.c (+1, -68) (Diff)
/source/blender/python/intern/bpy_operator.h (+0, -3) (Diff)
/source/blender/python/intern/bpy_operator_wrap.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+94, -2) (Diff)
/source/blender/python/intern/bpy_rna.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_ui.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021