Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-08PyAPI: use real modules for bpy.opsCampbell Barton
Python 3.7x added support for module `__getattr__` & `__dir__`. Make use of this for operator access, previously these were module like classes. No functional changes, this is mostly to use a type which is expected, rather than faking the type with a class instance.
2017-12-04WM: message bus replacement for property notifiersCampbell Barton
Use dynamically generated message publish/subscribe so buttons and manipulators update properly. This resolves common glitches where manipulators weren't updating as well as the UI when add-ons exposed properties which hard coded listeners weren't checking for. Python can also publish/scribe changes via `bpy.msgbus`. See D2917
2017-11-29Cleanup: Python importsCampbell Barton
Split over lines to diff more easily.
2017-03-29PyAPI: minor path init simplificationCampbell Barton
2016-07-30Cleanup: pep8Campbell Barton
2015-11-16Cleanup: remove unused profiling from bpyCampbell Barton
2014-12-18PyAPI: disallow assigning members to 'bpy.ops'Campbell Barton
2013-02-10use import rather then assignment for loading '_' into scripts.Campbell Barton
2012-06-20style cleanupCampbell Barton
2012-03-29fix [#30402] modules dir missing from sys.pathCampbell Barton
2011-11-03modify previous api feature to tag functions as permanent, use nicer ↵Campbell Barton
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-10-17correct spelling errors in commentsCampbell Barton
2011-08-12add bpy.types as a module for convenient imports, eg:Campbell Barton
from bpy.types import Menu
2011-07-31py api: sphinx doc corrections, pep8 cleanup and style edits, also added ↵Campbell Barton
__all__ to some modules which were missing it.
2011-07-29pep8 cleanup, also print message when attempting to run in animation player ↵Campbell Barton
mode.
2011-07-01minor pep8 editsCampbell Barton
2011-06-29console autocomp import now excludes '_' prefixed variables and the results ↵Campbell Barton
are sorted.
2011-04-04fix [#26757] Python console: help() doesn't work anymoreCampbell Barton
also quiet some warnings & add docstrings to bpy module which was shaowing the GPL header in its help() message.
2011-03-23missed committing this beforeCampbell Barton
2011-03-21move script directories for internal blender scripts.Campbell Barton
ui/ --> startup/bl_ui op/ --> startup/bl_operators scripts/startup/ is now the only auto-loading script dir which gives some speedup for blender loading too. ~/.blender/2.56/scripts/startup works for auto-loading scripts too.
2011-02-27lazy load pydoc module. move help() replacement into console code rather ↵Campbell Barton
then on startup since importing pydoc pulls in lots of other modules too.
2011-01-01pep8 cleanupCampbell Barton
2010-12-11allow addons/modules path so extension authors can develop their own shared ↵Campbell Barton
modules.
2010-11-20- use relative imports for packagesCampbell Barton
- reload() has been removed from pythons builtins. use imp.reload() instead (still need to apply globally). - fixed own mistake, not ignoring 'filter_glob' as a keyword argument (broke fbx, obj, 3ds export)
2010-09-07ran through pep8 checkerCampbell Barton
2010-08-20rna data path names which are more likely to break animations.Campbell Barton
Added an operator "Update Animation Data", access from the search menu to update drivers and fcurves.
2010-08-06bugfix [#23194] export UVs miss the extension fileCampbell Barton
also made all other exporters do this. Made some internal changes. - moved path functions from bpy.utils to bpy.path (similar to os.path) - added functions... bpy.path.ensure_ext(path, ".ext", case_sensitive=False) # simple function to ensure the extension is set. bpy.path.resolve_ncase(path) # useful for importing scenes made on windows where the path case doesnt match the files.
2010-05-30- Python console argument '--python-console', option so you can start ↵Campbell Barton
blender and drop into a python console, (useful for debugging some problems on a renderfarm over ssh) - Also made it so sys.stdin isnt overwritten anymore, instead the interactive consoel overwrites while it executes and restores after. - removed hope folder from sphinx patch path
2010-03-21[#21682] help() doesn't work in the consoleCampbell Barton
replace pydoc's pager function so the console's input isnt used.
2010-03-15pep8 warningsCampbell Barton
2010-03-08workaround for [#21486] Python debuger pdb don't workCampbell Barton
setting sys.stdin to None is done so python wont lock blender when it tries to read from the input. - help() from the console does this. Running blender with -d keeps the stdin so python debugging can work. add info in the help message about this. eventually it might be best to replace sys.stdin with our own object which interacts with the console but this is not trivial.
2010-02-28remove so-called security patch,Campbell Barton
this has been used by various projects but needs to be justified since it wont remove paths that also resolve to the CWD, "." for instance.
2010-02-12correct fsf addressCampbell Barton
2010-02-01Mathutils doc improvements + other small thingsCampbell Barton
- bpy.app moved into PyStructSequence (used by sys.float_info) - added buildinfo into bpy.app.build_* - bpy.ui removed (wasnt used) - include external example files in Mathutils docs (only Mathutils and Vector are currently written) - added support to auto document PyStructSequence's - CMake had "'s inside all its strings.
2010-01-31pep8 changesCampbell Barton
2010-01-28move bpy.load_scripts --> bpy.utils.load_scriptsCampbell Barton
added sequencer strip length display in seconds
2010-01-28* Mathutils attributes documented - ↵Campbell Barton
http://www.blender.org/documentation/250PythonDoc/Mathutils.html * Vector.difference() needed normalized vectors * bpy.DEUBG -> bpy.app.debug
2010-01-22- bugfix (user supplied fix) [#20745] makesrna with rename error.Campbell Barton
- error with last commit, length had an index arg.
2010-01-22continue when there are errors on reloading scriptsCampbell Barton
2010-01-20Patch from Jochen Schmitt, (various distro's had patched this)Campbell Barton
- modify the path in python rather then C - filter returns an object in python 3, set using slice. also import sys as _sys so it doesnt appier in aytocompleation.
2010-01-18python script reloading (f8)Campbell Barton
- reload modules from types that are not directly included. for example wm.py uses classes from modules/rna_prop_ui.py which wasnt reloaded. - script paths were being added to sys.path multiple times. note: now the second reload gives a crash right away but this is a bug elsewhere.
2010-01-12[#20646] 2.5 does not load python scripts with multiple dots in the filenameCampbell Barton
- not a bug so add a warning if people add scripts with invalid names like this.
2010-01-03new python submodule. eg.Campbell Barton
from bpy.app import binary_path, version, version_string, home can add constant variables from blender here as needed (maybe functions too... bpy.app.memory_usage() ?)
2009-12-28new python module constantsCampbell Barton
* bpy.home - result of BLI_gethome() * bpy.version - BLENDER_VERSION/100, BLENDER_VERSION%100, BLENDER_SUBVERSION * bpy.version_string, as above, formatted: "%d.%02d (sub %d)"
2009-12-26pep8 edits, removed MakeCursor.py and rna_array.py, not important to make pep8Campbell Barton
2009-12-13script for automating pep8 checks.Campbell Barton
On ubuntu/debian install these tools... sudo apt-get install pylint pyflakes python-setuptools python-pip sudo pip install pep8 then run from blenders source dir... python release/test/pep8.py This searches for the comments "# <pep8 compliant>" and "# <pep8-80 compliant>", running the checking tools on these scripts only. * some minor pep8 corrections too.
2009-12-06pep8 edits and fix some warningsCampbell Barton
2009-12-05fixes for automatic tests and some errors in last commitCampbell Barton
2009-12-01User Script support added back.Campbell Barton
- the scripts path set in the user preferences or ~/.blender/scripts/ui (io, op, io etc..) will be used to load scripts. - the default home dir part probably only works in *nix os's - Added a missing sync callback to vector.toTuple()
2009-11-23- made properties in the view3d panel only show when there are some ↵Campbell Barton
properties available since this the option to add props isnt in this panel - remove print on startup