Campbell Barton
9fa36b12cc
style cleanup: pep8
2012-10-08 08:28:05 +00:00
Campbell Barton
8a51d235e6
pep8 cleanup
2012-09-26 21:19:51 +00:00
Campbell Barton
6b1582c012
better handle sizes by default for mask mode, now ignore image width/height
2012-08-25 14:18:54 +00:00
Campbell Barton
a7ec09aef9
ability to register your own online manual callbacks - useful for 3rd party addon developers, who may want to link to their own URL's.
2012-08-25 14:07:51 +00:00
Campbell Barton
b0371f053c
style cleanup
2012-08-17 18:36:20 +00:00
Campbell Barton
3270438678
fix for own regression with handling of script paths, however this didnt work quite right before either.
...
Handle these 2 kinds of script paths
* user script path: ~/.blender/scripts OR $BLENDER_USER_SCRIPTS
* pref script path: always bpy.context.user_preferences.filepaths.script_directory
now both are returned by bpy.utils.script_paths()
2012-07-29 01:02:25 +00:00
Bastien Montagne
e204d67cc7
Fix [ #32135 ] FRAMERATE: Framerate display is truncated in selection box.
...
Filename extension was striped twice...
2012-07-18 08:51:19 +00:00
Bastien Montagne
558721ab59
More spell checking.
2012-07-04 15:04:38 +00:00
Bastien Montagne
63810ffcef
Style edit (mostly), use """ for docstrings (not ''').
...
Should also fix the broken py ops tips...
2012-07-03 09:02:41 +00:00
Campbell Barton
bd21001aaf
fix for bug where user scripts path set by an environment variable would write presets there but not show up in the menu.
2012-06-29 08:33:13 +00:00
Campbell Barton
a09feb7386
option so operators can be executed with undo enabled (and redo).
2012-06-27 21:41:17 +00:00
Campbell Barton
98e6912480
style cleanup
2012-06-19 22:17:19 +00:00
Campbell Barton
0d6ffd925d
remove duplicate import
2012-06-10 00:22:18 +00:00
Campbell Barton
9ffb1c1dd8
bpy.utils.time_to_frame() and frame_to_time() utility functions.
2012-05-28 16:06:38 +00:00
Campbell Barton
5b88712ff9
move debug flag into its own global var (G.debug), split up debug options.
...
--debug
--debug-ffmpeg
--debug-python
--debug-events
--debug-wm
This makes debug output easier to read - event debug prints would flood output too much before.
For convenience:
--debug-all turns all debug flags on (works as --debug did before).
also removed some redundant whitespace in debug prints and prefix some prints with __func__ to give some context.
2012-03-31 00:59:17 +00:00
Campbell Barton
299025bdfb
fix [ #30402 ] modules dir missing from sys.path
2012-03-28 23:53:27 +00:00
Campbell Barton
b56d2f9766
fix [ #30623 ] user-defined render presets bug
...
this report exposed multiple bugs in blender when using a non utf8 compatible home directory.
- bpy.utils.script_paths() would crash when homedir wasn't utf8 (reported bug)
- PyC_DefaultNameSpace() - would raise an error when running when __file__ was non utf8.
- preset filepath property was not set to accept non utf8.
- bpy.paths.display_name would raise an error on non utf8 paths, (used for preset draw)
2012-03-21 22:29:49 +00:00
Campbell Barton
c6c0601d8e
py api:
...
modify bpy.path.display_name_from_filepath() to accept bytes
2012-03-16 04:14:57 +00:00
Campbell Barton
72889d8935
Code Cleanup: remove unused preset variable.
2012-02-07 06:53:19 +00:00
Campbell Barton
7f08c71f43
cleanup for redefined vars
2012-01-18 06:55:51 +00:00
Campbell Barton
032a6f63a7
enable xml preset save/load, replace install/export themes with these.
2012-01-10 16:20:01 +00:00
Campbell Barton
a8b19260cf
check for presets in addons dirs. this way addons can install their own presets too.
2011-12-30 08:39:40 +00:00
Campbell Barton
b22405fa6f
fix for bpy.path.abspath() on windows when the library argument was set and its self a relative path too.
2011-12-11 19:48:56 +00:00
Campbell Barton
6e28ac2d7b
pep8 edits and avoid naming conflicts with python builtins
2011-11-24 19:36:12 +00:00
Campbell Barton
4d9766aacf
minor cleanup
...
- remove / comment unused python vars
- replace mul_v3_fl(somevec, -1.0f); with negate_v3(somevec);
2011-11-16 16:38:37 +00:00
Campbell Barton
f086201518
cmake & pep8 tidy up, also some style edits.
...
remove unneeded collection length function.
2011-11-08 01:32:34 +00:00
Campbell Barton
5eef937436
modify previous api feature to tag functions as permanent, use nicer decorator style, eg:
...
# --------
import bpy
from bpy.app.handlers import persistent
@persistent
def my_func(scene):
pass
bpy.app.handlers.frame_change_pre.append(my_func)
2011-11-03 09:13:47 +00:00
Campbell Barton
fda2045150
correct spelling errors in comments
2011-10-17 06:58:07 +00:00
Campbell Barton
751aa8c7f4
py api: bpy_extras.io_utils.path_reference() - added library argument so exporters get the paths of linked images right.
2011-10-11 04:36:27 +00:00
Campbell Barton
fa5275cdfa
- bpy.path.abspath(), added optional library argument since any paths from linked datablocks are relative to this, not the blend files path, this saves kludgy path code wherever libraries may be used.
...
- Image "Edit Externally" operator can now edit relative library images.
also minor edits to navmesh.
2011-10-11 04:09:11 +00:00
Campbell Barton
f7737153e6
filter RNA classes for translation (removes over 1300 lines from messages.txt)
...
- omit operators tagged as INTERNAL
- omit classes for internal use: Event, Context, Property, Function, Window.
2011-10-05 03:39:22 +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
8fd246cb70
add bpy.types as a module for convenient imports, eg:
...
from bpy.types import Menu
2011-08-12 06:31:39 +00:00
Kent Mein
9026dc6ee4
Fixed a few small typos.
...
Kent
2011-08-02 17:00:44 +00:00
Campbell Barton
f4293067c1
py api: sphinx doc corrections, pep8 cleanup and style edits, also added __all__ to some modules which were missing it.
2011-07-31 03:15:37 +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
5132be21d1
fix [ #28075 ] After the correction of No.38528 is applied, the following phenomenon has been generated.
...
own fault in recent addition of bpy.path.basename() not supporting byte paths.
2011-07-25 04:00:11 +00:00
Campbell Barton
76e91d7a5f
fix [ #27922 ] using preset_paths() with an absolute path returns twice the same thing
...
raise an error when an invalid subdir is passed to preset_paths()
2011-07-20 15:33:27 +00:00
Campbell Barton
4ad43aaf16
added bpy.path.basename because "//" prefix breaks os.path.basename.
2011-07-20 08:10:01 +00:00
Campbell Barton
f4b6d00926
fix for bpy.path.abspath(), if a path was passed it would get the last directory cut off, broke copying images on export.
2011-07-19 05:05:54 +00:00
Campbell Barton
dbc9e36f72
make python3.3 compatible, __class__ is no longer in the class methods namespace.
2011-07-11 05:50:49 +00:00
Campbell Barton
2c66ab12e9
minor pep8 edits
2011-07-01 12:33:34 +00:00
Campbell Barton
d86d68d4e6
console autocomp import now excludes '_' prefixed variables and the results are sorted.
2011-06-29 10:47:43 +00:00
Campbell Barton
c672b3fb67
[ #27439 ] Console window doesn't hide on startup when presets are used (Windows)
...
only print preset load messages in when debug is enabled.
2011-05-20 00:21:38 +00:00
Campbell Barton
863b60e1b8
fix [ #27432 ] [2.57/scripts/modules/bpy/path.py:169] can't concat bytes to str
2011-05-19 06:27:39 +00:00
Campbell Barton
b432520799
fix [ #27324 ] WindowManager.invoke_search_popup() crashes blender and does not work
...
also minor formatting fixes.
2011-05-08 12:51:05 +00:00
Campbell Barton
e26b0c68a4
patch [ #27205 ] Infinite recursion inside resolve_ncase() when passed a driver letter on Windows that does not exist
...
by Brandon Ehle (azverkan)
2011-05-06 11:27:04 +00:00
Campbell Barton
5a0dca41e5
fix 2 bugs with addon installation
...
- installing an addon which creates a new script directory didn't add this to the sys.path.
- installing the addon was meant to set the search string to the addon name but was broken.
2011-05-04 08:44:08 +00:00
Campbell Barton
d8eafe14c6
fix [ #27148 ] *Invalid Path* in all "operator presets" dropdowns
2011-05-02 17:29:30 +00:00
Campbell Barton
f8c09b37d4
api changes needed for for copying old settings to new.
...
- py: bpy.utils.resource_path('USER', 2, 56)
- C: BLI_get_folder_version(id, major, minor, check);
2011-04-11 13:56:58 +00:00