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
2013-04-11py api: minor change to operator attribute access, do identity comparison ↵Campbell Barton
with None (no functional change).
2013-03-28code cleanup: python/pep8 and double-promotion warnings.Campbell Barton
2013-03-18Merge of the PyNodes branch (aka "custom nodes") into trunk.Lukas Toenne
PyNodes opens up the node system in Blender to scripters and adds a number of UI-level improvements. === Dynamic node type registration === Node types can now be added at runtime, using the RNA registration mechanism from python. This enables addons such as render engines to create a complete user interface with nodes. Examples of how such nodes can be defined can be found in my personal wiki docs atm [1] and as a script template in release/scripts/templates_py/custom_nodes.py [2]. === Node group improvements === Each node editor now has a tree history of edited node groups, which allows opening and editing nested node groups. The node editor also supports pinning now, so that different spaces can be used to edit different node groups simultaneously. For more ramblings and rationale see (really old) blog post on code.blender.org [3]. The interface of node groups has been overhauled. Sockets of a node group are no longer displayed in columns on either side, but instead special input/output nodes are used to mirror group sockets inside a node tree. This solves the problem of long node lines in groups and allows more adaptable node layout. Internal sockets can be exposed from a group by either connecting to the extension sockets in input/output nodes (shown as empty circle) or by adding sockets from the node property bar in the "Interface" panel. Further details such as the socket name can also be changed there. [1] http://wiki.blender.org/index.php/User:Phonybone/Python_Nodes [2] http://projects.blender.org/scm/viewvc.php/trunk/blender/release/scripts/templates_py/custom_nodes.py?view=markup&root=bf-blender [3] http://code.blender.org/index.php/2012/01/improving-node-group-interface-editing/
2013-02-08disable translations for some python buttons.Campbell Barton
2013-01-30Fix #34016: add backwards compatibility for deprecated region.callback_addBrecht Van Lommel
python function, this keep addons working. It's better to use the new function but might as well avoid breaking compatibility here.
2013-01-16style cleanupCampbell Barton
2013-01-14fix fox AddonPreferences not getting registered automatically and leak when ↵Campbell Barton
removing the addon (wasnt freeing ID-props).
2012-12-28This commit frees list ui items from their dependencies to Panel, and hence ↵Bastien Montagne
from all the limitations this implied (mostly, the "only one list per panel" one). It introduces a new (py-extendable and registrable) RNA type, UIList (roughly similar to Panel one), which currently contains only "standard" list's scroll pos and size (but may be expended to include e.g. some filtering data, etc.). This now makes lists completely independent from Panels! This UIList has a draw_item callback which allows to customize items' drawing from python, that all addons can now use. Incidentally, this also greatly simplifies the C code of this widget, as we do not code any "special case" here anymore! To make all this work, other changes were also necessary: * Now all buttons (uiBut struct) have a 'custom_data' void pointer, used currently to store the uiList struct associated with a given uiLayoutListBox. * DynamicPaintSurface now exposes a new bool, use_color_preview (readonly), saying whether that surface has some 3D view preview data or not. * UILayout class has now four new (static) functions, to get the actual icon of any RNA object (important e.g. with materials or textures), and to get an enum item's UI name, description and icon. * UILayout's label() func now takes an optional 'icon_value' integer parameter, which if not zero will override the 'icon' one (mandatory to use "custom" icons as generated for material/texture/... previews). Note: not sure whether we should add that one to all UILayout's prop funcs? Note: will update addons using template list asap.
2012-12-21make Node.links return a tuple, this may you can't do socket.links.append() ↵Campbell Barton
by mistake. removed RNAMeta mixin class since you cant register subclasses. also some minor code cleanup
2012-12-21Explicit python class for NodeSocket RNA type in bpy_types. This defines a ↵Lukas Toenne
utility property for getting links to or from a node socket, as discussed on bf-committers: http://lists.blender.org/pipermail/bf-committers/2012-December/038555.html Note: NodeTree and Node currently use standard python classes generated by bpy for now. The customnodes branch defines such classes as well, with specialized metaclasses for use with ID properties. Not needed in trunk yet.
2012-11-28typo's and some style cleanup, also added asserts into BLI_vsnprintf and ↵Campbell Barton
BLI_sprintfN when invalid args are given.
2012-10-08style cleanup: pep8Campbell Barton
2012-05-09fix [#31383] EditBone.align_orientation() uses Vector.normalize() incorrectlyCampbell Barton
2012-04-13bmesh todo: vertex dirtmap now working again.Campbell Barton
also renamed Polygon helper property from 'loops' to loop_indices
2012-04-08style cleanup: pep8 some C/styleCampbell Barton
2012-04-07dont display any file as a preset in the menu (limit to *.py, *.xml)Campbell Barton
backup files like .py~ for eg had their own menu entries which got annoying. added optional filter_ext function callback argument to Menu.path_menu() to avoid displaying invalid types.
2012-03-23rna/python api change: rename Mesh.faces --> tessfaces, since existing ↵Campbell Barton
scripts are using this to modify the mesh and its confusing that the edits are not kept. This also makes it clearer that the faces are for tessellated results only. Added a section on the Gotcha's about upgrading scripts, the pros and cons of MeshTessFace/MeshPoly/BMFace. and spesifically how to upgrade importers and exporters for 2.63+.
2012-03-08style cleanup: pep8 + picky editsCampbell Barton
2012-02-27fix for problem that happened since bmesh mere mesh.from_py_data() - edge ↵Campbell Barton
data for faces was being lost on entering editmode, now check for empty edge list and make edges in that case.
2012-02-19misc changes from trunk (avoid confusion since these were not intentional ↵bmeshCampbell Barton
differences)
2011-11-17Add access to UVs from python, patch python unwrap scripts to work wtih ngonsAndrew Wiggin
2011-10-24svn merge ^/trunk/blender -r41200:41226 .Campbell Barton
2011-10-23minor formatting edits (80 char width)Campbell Barton
2011-10-18svn merge ^/trunk/blender -r41075:41099Campbell Barton
2011-10-17correct spelling errors in commentsCampbell Barton
2011-09-21svn merge -r40295:40367 ^/trunk/blenderCampbell Barton
2011-09-19/release/scripts: Removed final points in UI strings and messages.Bastien Montagne
2011-09-09svn merge -r40034:40051 https://svn.blender.org/svnroot/bf-blender/trunk/blenderCampbell Barton
2011-09-08correct fix for #28558Campbell Barton
2011-09-08svn merge -r39991:40034 https://svn.blender.org/svnroot/bf-blender/trunk/blenderCampbell Barton
2011-09-08fix [#28558] more edge_keys than edgesCampbell Barton
2011-09-03svn merge -r39877:39878 ↵Campbell Barton
https://svn.blender.org/svnroot/bf-blender/trunk/blender, merged manually
2011-09-01ability to create polygons and loops from python (low level mesh creation ↵Campbell Barton
access, not nice api but functional). updated: mesh.from_pydata(vert, edge, polys) ... so it can take polygons rather then faces, this is much better suited for scripter access.
2011-08-30minor edits, pep8 - also correct float -> double promotion for blf.Campbell Barton
2011-08-30* Merge trunk up to r39790.soc-2011-pepperJoerg Mueller
* Subversion bump (also for init_userdef_do_versions). * Minor fix for compilation without ffmpeg.
2011-08-26correct missing bpy doc references.Campbell Barton
2011-08-013D Audio GSoC:Joerg Mueller
Adds new speaker object type. Notes: * Needs some nice icons * Quickily review by Joshua Leung (5 mins) * Properties UI updated (with help of Thomans Dinges) * Speakers have their own theme color * No real audio functionality yet. * Minor bug regarding lamps/lattices fixed in interface_templates.c I personality tested: * Creation, Deletion, Duplication * Saving, Loading * Library linking (incl. make local) * Tracking * Dope Sheet, Outliner * Animation * Drawing (incl. Theme)
2011-07-30Merging up to trunk r38834.Joerg Mueller
2011-07-25reverse vector multiplication order for some internal functions.Campbell Barton
2011-07-12Merging trunk up to r38329.Joerg Mueller
2011-07-10cleanup for python scripts - unused vars and importsCampbell Barton
2011-06-21Merge with trunk r37677Joerg Mueller
2011-06-18fix for error caused with module relocation - broke loading ngons in OBJ filesCampbell Barton
2011-06-063D Audio GSoC:Joerg Mueller
Making it possible to access blenders internal sounds via Python.
2011-05-26move less common mesh operations out of bpy_types into bpy_extras.mesh_utilsCampbell Barton
2011-03-15pep8 edits and remove commented code from last commit.Campbell Barton
2011-03-12library loading api.Campbell Barton
this is not well suited to RNA so this is a native python api. This uses: bpy.data.libraries.load(filepath, link=False, relative=False) however the return value needs to use pythons context manager, this means the library loading is confined to a block of code and python cant leave a half loaded library state. eg, load a single scene we know the name of: with bpy.data.libraries.load(filepath) as (data_from, data_to): data_to.scenes = ["Scene"] eg, load all scenes: with bpy.data.libraries.load(filepath) as (data_from, data_to): data_to.scenes = data_from.scenes eg, load all objects starting with 'A' with bpy.data.libraries.load(filepath) as (data_from, data_to): data_to.objects = [name for name in data_from.objects if name.startswith("A")] As you can see gives 2 objects like 'bpy.data', but containing lists of strings which can be moved from one into another.
2011-03-09py/ui: ensure extensions which add draw functions for menus/headers/panels ↵Campbell Barton
always get the default operator context, not the one that was last set.
2011-03-07Py/Operators: FBX Exporter setting order was still randomized.Campbell Barton
Some lines removed recently I thought were are needed were there so classes that use mix-ins keep the argument order.
2011-03-03fix for own error [#26310] "Randomize Transform" operator has widgets jumbledCampbell Barton
the correct order was being overwritten.