This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/python/intern
Campbell Barton a705f64245 python access to operators now hides the _OT_ syntax, eg. SOME_OT_operator -> some.operator
this works for the calling operators from python and using the RNA api.

bpy.ops.CONSOLE_exec() is now bpy.ops.console.exec()

eg.
split.itemO("PARTICLE_OT_editable_set", text="Free Edit") becomes... split.itemO("particle.editable_set", text="Free Edit")

For now any operator thats called checks if its missing _OT_ and assumes its python syntax and converts it before doing the lookup.

bpy.ops is a python class in release/ui/bpy_ops.py which does the fake submodules and conversion, the C operator api is at bpy.__ops__

personally Id still rather rename C id-names not to contain the _OT_ text which would avoid the conversion, its called a lot since the UI has to convert the operators.
2009-07-17 12:26:40 +00:00
..
2.5
2009-07-08 14:26:43 +00:00
2009-04-01 12:43:07 +00:00
2009-06-05 12:48:58 +00:00
2009-06-18 19:51:22 +00:00
2008-11-29 13:36:08 +00:00
2009-07-16 00:50:27 +00:00
2009-07-11 13:57:56 +00:00
2009-06-14 12:53:47 +00:00
2009-06-23 00:09:26 +00:00