Commit Graph

120 Commits

Author SHA1 Message Date
Campbell Barton 858149d7c7 bmesh py api: add bmesh.update_edit_mode(), there was no way to redraw the 3d view or re-calculate face tessellation from python.
add py template for editing meshes in editmode.

also remove double call to CTX_wm_region which does a string lookup.
2012-11-29 05:02:06 +00:00
Campbell Barton ede703ab85 some minor edits
- script stub printed resource warning with py3.3 (not closing a file).
- bmesh customdata layer access had bad docstring.
- float/double conversion warnings in sequencer code (use doubles since result is double)
- remove unused var
2012-11-29 03:55:07 +00:00
Campbell Barton 796988adc9 modify the python stub to include __file__ and __name__, also correct odd indent in KX_KetsjiEngine.cpp 2012-11-22 05:20:51 +00:00
Campbell Barton 0c2a1500f2 minor changes
- stub from last commit was incorrect (copied old docs)
- decimator was making copy of quadric for no reason.
- correct typo
2012-10-17 16:10:04 +00:00
Campbell Barton f83ae34e03 add a template for a stub script - runs the script relative to the currently open blend file. 2012-10-17 16:01:57 +00:00
Thomas Dinges 1958fda91f Templates:
* UI Panel: Add examples for different button sizes.
2012-10-12 18:10:15 +00:00
Campbell Barton 9fccfd313c correct addon example, it used both __doc__ and bl_description 2012-09-29 11:51:18 +00:00
Campbell Barton 8a51d235e6 pep8 cleanup 2012-09-26 21:19:51 +00:00
Campbell Barton e038d7212a minor update to panel templates/examples - the panel examples didnt show an operator and use scene rather then sc for the active scene name. 2012-09-23 23:11:24 +00:00
Campbell Barton 8cf9e5f8c3 change templates to call modal_handler_add() is called last since any errors between calling this function and returning will crash blender. see [#30687] 2012-09-05 00:11:39 +00:00
Campbell Barton d5fdec6619 add manual lookup to addon tempalte 2012-08-25 15:00:41 +00:00
Campbell Barton 7d673ef0d2 fix for blend_render_info.py not closing file & some edits to comments. 2012-08-22 10:29:30 +00:00
Thomas Dinges da4d468e98 Docs / Templates:
* Added a ui_panel template with more complex layouts.
2012-08-01 12:21:23 +00:00
Campbell Barton 2a140e93c1 style cleanup 2012-07-04 21:41:05 +00:00
Campbell Barton 81a509fa40 fix error in node template and quiet warning. 2012-07-03 21:03:39 +00:00
Campbell Barton f81c38ce2d another fix for error in the view raycast template 2012-07-01 13:57:32 +00:00
Campbell Barton 1eae6b5fb5 fix for 2 errors in the template 2012-07-01 11:05:11 +00:00
Campbell Barton 93cb7fb97b python template for doing mouse ray casts to pick objects in the 3d viewport. 2012-07-01 08:46:02 +00:00
Campbell Barton 9454015289 style cleanup: remove '.' from docstring endings and use quotes for descriptions. 2012-07-01 07:55:44 +00:00
Campbell Barton 5248ec57d9 minor fixes
- new compositor could use uninitialized var
- profile conversion could use uninitialized var
- set better warnings for clang+cmake.
- remove picky warnings from sphinx doc gen shell script.
2012-06-11 12:13:41 +00:00
Campbell Barton 9a92b0c5c4 template for python node operators 2012-06-11 10:11:31 +00:00
Campbell Barton da1e128d77 fix for modal timer template, wasnt updated for changes to themes. 2012-04-27 10:00:21 +00:00
Campbell Barton 09f722740f move rip out into its own file 2012-04-17 10:25:23 +00:00
Campbell Barton 1142a504cb remove the poll function from import/export templates 2012-04-17 05:49:07 +00:00
Campbell Barton 0de1ed5787 add import operator python template. 2012-04-17 05:47:32 +00:00
Campbell Barton 5da50b9c09 update for changes in the py api 2012-04-11 08:22:31 +00:00
Campbell Barton 6711870cab updated add mesh template for bmesh. thanks to PKHG for initial conversion. 2012-03-30 05:43:33 +00:00
Campbell Barton c0e702694f patch [#30620] Wiki Quick Hack: Make Tooltip Text Colour Themeable
from luke frisken (lfrisken), with some edits.

some tooltip colors weren't visible with different backgrounds, now the base tooltip color is used and tinted for python/alert/shortcuts etc. the tint colors are still hard coded.
2012-03-22 20:24:11 +00:00
Campbell Barton 21fd09c028 bmesh py api: change .from_mesh() / .to_mesh() to be class methods of BMesh rather than functions in the module.
added example script which converts a mesh to a bmesh, edits and converts back again.
2012-03-11 02:45:27 +00:00
Campbell Barton 1f74789d12 Correct mathutils documentation, also correct some python spelling errors and add makefile target check_spelling 2012-02-08 04:37:37 +00:00
Campbell Barton 9c2a58a811 remove api from addon bl_info, was never used. 2012-01-14 13:02:20 +00:00
Campbell Barton d541a200c2 rename user interface operator properties from 'op' to 'props' 2011-10-23 00:53:50 +00:00
Campbell Barton fda2045150 correct spelling errors in comments 2011-10-17 06:58:07 +00:00
Campbell Barton febcb91b82 - add template for defining custom driver functions.
- comment unused assignments.
2011-10-15 07:19:34 +00:00
Bastien Montagne 712e434a5f /release/scripts: Removed final points in UI strings and messages. 2011-09-19 14:00:42 +00:00
Campbell Barton 1324173e99 pep8 edits and change '!= None' to 'is not None' 2011-08-22 09:01:49 +00:00
Campbell Barton 90d19ad883 py style change only - make property definitions consistent 2011-08-19 19:25:20 +00:00
Nathan Letwory 3758f125fc Fix for incorrect parameter amount. 2011-08-10 09:30:45 +00:00
Campbell Barton 036077ebc6 fix for error in template 2011-08-10 09:16:35 +00:00
Campbell Barton 22d2764d50 use static sets rather then tuples, python optimizes this case.
minor change to lightmap unpack collecting unique meshes.
2011-08-08 05:21:37 +00:00
Campbell Barton 2f3685615f fix for template 2011-08-01 06:55:05 +00:00
Campbell Barton 2658949752 pep8 cleanup, also print message when attempting to run in animation player mode. 2011-07-29 01:24:03 +00:00
Campbell Barton 9e1a553127 set the development cycle to 'beta'. 2011-07-26 07:41:14 +00:00
Campbell Barton 71692e802f py api:
- added menu templates
- move template menu into the header of the text editor (so users will find more easily)
- updated mathutils examples, switching the order of multiplication.
2011-07-26 07:39:00 +00:00
Campbell Barton 7e4ccf9349 template for patch exporting objects in a scene. 2011-07-17 13:29:50 +00:00
Campbell Barton 68dbfe6ac9 move generic bpy helper modules into bpy_extras. 2011-05-16 07:51:02 +00:00
Campbell Barton f3a9b7580e spelling corrections. 2011-04-29 04:43:36 +00:00
Campbell Barton dbd3009108 - background job style cleanup.
- assert if material assignment is called with lib. (so the callers can be corrected).
- correct example docs
2011-04-10 15:24:05 +00:00
Campbell Barton c8652b301f pep8 checker, mostly pedantic style changes but also found an error in mesh_utils.mesh_linked_faces() 2011-04-01 02:41:15 +00:00
Campbell Barton d766111632 example operator that uses a timer. 2011-03-28 13:53:53 +00:00