Blender Git Commit Log

Git Commits -> Revision bcd1ab5

Revision bcd1ab5 by Martin Poirier (master)
December 5, 2009, 19:27 (GMT)
Support for the C Macro system in Python.

Basic definition works like a python operator but you derive from "bpy.types.Macro" instead.
Operators are added to the macro after it has been added with "bpy.ops.add_macro" through the class method "define" which takes an operator id and returns an OperatorMacroType (new RNA type) for which properties can then be defined to be passed to the operator when run.

Example: http://blenderartists.org/~theeth/bf/macro.py

Using this system, it should be easy to add an operator to the console that converts selected lines into a macro or even a more generic record macro system.

Commit Details:

Full Hash: bcd1ab54cd1ebeda433f1c1999f5a9807c808e8e
SVN Revision: 25140
Parent Commit: 65edb73
Lines Changed: +278, -1

10 Modified Paths:

/release/scripts/modules/bpy/ops.py (+4, -0) (Diff)
/release/scripts/modules/bpy_types.py (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+52, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_operator.c (+5, -1) (Diff)
/source/blender/python/intern/bpy_operator_wrap.c (+184, -0) (Diff)
/source/blender/python/intern/bpy_operator_wrap.h (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+21, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+1, -0) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021