Campbell Barton
551e8bc72c
py api - optional sep argument for bpy_extra.io_utils.unique_name() since for some formats '.' is an invalid char.
2011-08-15 04:58:19 +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
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
38280ba38e
fix [ #28172 ] Cannot restore Add-ons tab in user preferences after a failed attempt to install an add-on.
...
non utf8 addons would make the addon UI vanish, now give a message in the console and UI.
2011-08-07 04:55:58 +00:00
Campbell Barton
a10245a1fa
fix [ #28151 ] export OBJ don't save the extension
...
also correct some typos
2011-08-03 05:32:07 +00:00
Kent Mein
9026dc6ee4
Fixed a few small typos.
...
Kent
2011-08-02 17:00:44 +00:00
Campbell Barton
2620bd0ade
fix for error in recent commit.
2011-07-31 12:46:34 +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
b71ccf3e06
fix error in writing dupligroups for X3D export, may have effected other exporters too.
2011-07-28 07:10:39 +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
7f60ee6cb5
reverse vector multiplication order for some internal functions.
2011-07-25 03:59:01 +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
8dd72c476e
fix [ #28005 ] Python Add-Ons are constantly reloaded if twice in the path
...
Addons are checked for their timestamps and reloaded when it changes but this failed when, 2 addons had the same name since different times caused 2 reloads on every redraw.
Now when duplicate addons are in the path now give a error message in the UI and print path conflict in the console and don't thrash reloading.
2011-07-18 05:41:46 +00:00
Campbell Barton
13e82ff8e1
fix [ #27971 ] Blender OBJ export with Z-Up setting produces an error and fails
...
changes to extensions coming up...
2011-07-18 05:07:54 +00:00
Campbell Barton
b0ffa7fc58
patch [ #27950 ] Patch to add the ability to generate random points on mesh faces
...
from Andrew Hale (trumanblending)
2011-07-13 07:50:21 +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
301e5b4ea0
fix for various python bugs and remove unused var.
2011-07-10 17:26:15 +00:00
Campbell Barton
b62a956cc8
cleanup for python scripts - unused vars and imports
2011-07-10 12:51:37 +00:00
Campbell Barton
22bb09d018
fix for error when moving module, broke fracture tools and select internal face operator.
2011-07-03 04:28:41 +00:00
Campbell Barton
2c66ab12e9
minor pep8 edits
2011-07-01 12:33:34 +00:00
Campbell Barton
093af18bfd
fix for own error in script edits, broke bpy_extras.mesh_utils.ngon_tesselate
2011-06-30 16:06:30 +00:00
Campbell Barton
8f89e7a309
incorrectly had CMake storing directory names as filepaths
...
also correct compiler warning for collada and remove print from own last commit.
2011-06-29 13:16:11 +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
c19d2d2da2
bug [ #27779 ] Python console completion broken
...
modified auto-completion, though this may need to become a preference.
The problem is:
- including _all_ text as a prefix can take a lot of space, and isnt too readable.
- including only the previous word is error prone because detecting delimiters can fail when editing strings.
so I've set it to only include the last part of the string but align to the cursor to make it more readable.
2011-06-29 06:06:59 +00:00
Campbell Barton
eaae38551f
pep8 compliance
2011-06-21 17:17:51 +00:00
Campbell Barton
2d01cb5b27
fix for error caused with module relocation - broke loading ngons in OBJ files
2011-06-18 11:40:44 +00:00
Campbell Barton
7cbc4c0dd7
IDProperty python module update
...
- add support for IDProp array slicing, but not resizing.
- rename array attribute type to typecode and use chars 'f', 'd', 'i' which match pythons array module. (was using int's which only have a meaning internally).
- rename function 'convert_to_pyobject' to 'to_dict' and 'to_list' for IDProp group and array types respectively.
- remove 'len' array attribute, calling len(array) is fine.
2011-06-17 05:45:46 +00:00
Campbell Barton
62ba2d4c68
Changes to quick explode
...
- fix python error when the object had an empty material slot
- initialize start frame from the current frame
- set frame range to 300000 max (which is blenders own maximum)
- mesh order was arbitrary, instead use selected -> active, removed invert option.
also fix for missing include in bpy_extras.view3d_utils
2011-06-15 00:16:30 +00:00
Campbell Barton
90d8fcb522
improved autocompleation when there is a common prefix
2011-06-11 17:03:26 +00:00
Campbell Barton
9cf0bbb95c
added a check to console auto-compleation for pythons struct_seq type, so bpy.app and sys.float_info autocompleate their attributes rather then bring treated as a typle.
2011-06-10 09:44:27 +00:00
Campbell Barton
1f56eee953
fix [ #27495 ] Incorrect result of image name autocompletion
2011-06-10 07:22:35 +00:00
Campbell Barton
dd0522242a
addons now show expanded list again (since Brecht's commit now makes it fast)
...
also add utility function for getting cleaned, unique names from python: bpy_extras.io_utils.unique_name(...)
2011-06-02 15:21:47 +00:00
Campbell Barton
f51c9fa496
fix for mistake in case insensitive image load.
2011-05-31 09:55:50 +00:00
Campbell Barton
c141ed0aa9
missed this import when moving load image function.
2011-05-30 12:19:30 +00:00
Campbell Barton
a9dd90be78
move load_image into image_utils and add some docstrings to bpy_extras module.
2011-05-28 09:34:45 +00:00
Campbell Barton
ecf2d1ff4e
- generate sphinx docs for bpy_extras module
...
- add in support to doc generator for automatically generating docs for submodules.
2011-05-28 07:47:58 +00:00
Campbell Barton
26252bb315
correct spelling error and some pep8 changes.
2011-05-26 09:33:51 +00:00
Campbell Barton
6466673a62
move less common mesh operations out of bpy_types into bpy_extras.mesh_utils
2011-05-26 07:16:56 +00:00
Campbell Barton
6a4a8854b5
lookup table for axis conversion was wrong in some places.
2011-05-24 12:55:29 +00:00
Campbell Barton
4a989282d4
bpy_extras.io_utils.axis_conversion() was returning wrong matrix.
2011-05-24 08:11:51 +00:00
Campbell Barton
4916c44af8
simplify window_to_3d_vector() and call it from viewline()
...
also update python view function to match.
2011-05-20 10:28:40 +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
Guillermo S. Romero
b181368f52
SVN maintenance.
2011-05-19 20:22:35 +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
32793a1395
add python access to mathutils.intersect_line_plane, update view3d_utils module to use it.
2011-05-19 04:28:09 +00:00
Campbell Barton
0c41635f85
fix for python module region_2d_to_vector_3d and region_2d_to_location_3d functions in ortho mode.
2011-05-18 15:57:20 +00:00
Campbell Barton
68dbfe6ac9
move generic bpy helper modules into bpy_extras.
2011-05-16 07:51:02 +00:00