Campbell Barton
8c767ce0e8
utility function for mesh data types
...
mesh.edge_loops_from_edges(edges=None)
Lets you get edge loops from python either from the entire mesh or from by passing an edge list.
2010-05-24 12:18:12 +00:00
Campbell Barton
7c0d2ffb64
pep8 cleanup
2010-03-06 01:40:29 +00:00
Campbell Barton
fbb8672da4
replace operator options bl_undo and bl_register with bl_options
...
eg.
bl_options = {'REGISTER', 'UNDO', 'BLOCKING', 'GRAB_POINTER'}
This didnt exist when operators were originally wrapped.
2010-03-01 00:03:51 +00:00
Campbell Barton
23efeff6a9
[ #21177 ] Text editor
...
Running scripts directly didnt call the register function, even though this is not essential its good to be able to run a script directly and see changes in the UI.
2010-02-16 09:55:07 +00:00
Campbell Barton
39c04315e2
change python scripts so modules which register with blender have a register() function rather then making import automatically run the register functions (generally considered bad practice by python people)
2010-02-14 11:21:21 +00:00
Campbell Barton
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
Daniel Salazar
bc5f81ee3c
Clean up of tooltips in py operators and better operator name for
...
randomize transform
2010-02-11 23:13:47 +00:00
Campbell Barton
27f715052a
minor corrections to scripts
2010-01-29 15:20:25 +00:00
Campbell Barton
5afd084513
replace dynamic_menu.py with Menu classmethods much less complicated.
...
access append/prepend eg.
bpy.types.INFO_MT_file_import.append(lambda self, context: self.layout.operator("import_some.format"))
2009-12-25 22:16:19 +00:00
Campbell Barton
bbe13e7823
* register operators like other classes
...
* operators now return sets (converted into flags)
* can't remove bpy_operator_wrap.c since macro's still use the custom register funcs
2009-12-24 19:50:43 +00:00
Campbell Barton
c3b978828c
pep8 corrections and no need to use C's _OT_ syntax when accessing operator names from py
2009-12-17 01:21:55 +00:00
Campbell Barton
bcb5f8ea12
Update 2.4x script: UV Follow active quads initial port thanks to Michael Williamson, added operator option, reporting, menu, edge length option myself.
2009-12-16 21:27:07 +00:00