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
2010-09-01moving import/export scripts into packages (just moving scripts, need to add ↵Campbell Barton
__init__.py still, temp break import/exporters)
2010-09-01cleanup duplicate GPL haeders, blender made 2.4x __bpydoc__ into __doc__, ↵Campbell Barton
removed version info, (thats what svn logs are for). also moved create_derived_objects & free_derived_objects into io_utils, used by x3d and 3ds.
2010-09-01use mix-in classes for import export operators, these define the filepath ↵Campbell Barton
property and invoke function at the moment.
2010-08-24- move more active properties into their collections:Campbell Barton
scene.active_keying_set --> scene.keying_sets.active ...same for active_uv_texture. active_vertex_color, active_keyconfig, - move mesh.add_uv_layer() and mesh.add_vertex_color() into their collections also have them return the newly created layer and dont set the layer active. uvtex = mesh.uv_layers.new(name) vcol = mesh.vertex_colors.new(name)
2010-08-18rna renaming, still only adjusting properties that wont be animated (at ↵Campbell Barton
least its very unlikely).
2010-08-18rna naming: verts -> verticesCampbell Barton
2010-08-13exporters now set the filepath in the invoke() method rather then the menu ↵Campbell Barton
drawing function.
2010-08-09poll() as a python '@staticmethod' was too limiting and didnt allow useful ↵Campbell Barton
base class poll functions in many cases. now rna functions that dont have a 'self' are automatically assumed '@classmethods'. de-duplicated poll functions and made some minor tweaks too.
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-08-05bugfix [#23182] Using self.report() inside poll() gives crashCampbell Barton
poll() function is now a static method in python, this is more correct, matching C where the operator is not created to run poll. def poll(self, context): ... is now... @staticmethod def poll(context): ... Pythons way of doing static methods is a bit odd but cant be helped :| This does make subclassing poll functions with COMPAT_ENGINES break, so had to modify quite a few scripts for this.
2010-08-02RNA Types metaclass registrationMartin Poirier
See mailing list posts for details [1][2][3] Addons still need to be fixed; Campbell said he'd do it today. See any of the py files (outside netrender) in this commit for how to do it (it's rather simple). [1] http://lists.blender.org/pipermail/bf-committers/2010-February/026328.html [2] http://lists.blender.org/pipermail/bf-committers/2010-August/028311.html [3] http://lists.blender.org/pipermail/bf-committers/2010-August/028321.html
2010-07-26[#23035] Obj export crashCampbell Barton
check for an active object before switching modes.
2010-07-14bugfix [#22843] Cannot export to folder with ".blend" on the end.Campbell Barton
2010-07-03rna api:Campbell Barton
rename object.matrix --> matrix_world added object.matrix_local (parent relative matrix)
2010-06-14naming changesCampbell Barton
path -> filepath (for rna and operators, as agreed on with elubie) path -> data_path (for windowmanager context functions, this was alredy used in many places)
2010-06-02rename some rna properties filename --> filepathCampbell Barton
* filename == "foo.ext" * filepath == "/path/to/and/including/foo.ext" this was alredy followed in some places not not everywhere.
2010-04-06Object API changes so these functions now require a scene as first argument:Brecht Van Lommel
create_mesh, create_dupli_list, make_display_list and is_visible. This is done in order to make these context independent as the RNA API should be as much as possible, and to fix #21297 and #21719, where there was an assumption from these functions that there is a scene in the context, which does not work for external render engines exporting in a separate thread. Also avoided using context in a number of other functions, ideally only UI/WM type functions should use context. I've updated the scripts in trunk, but the addons and external ones in development will need updates too.
2010-04-05Fix [#21886] OBJ export crashes if attempted while in edit modeMatt Ebb
Didn't crash for me, but did export incorrectly since editmode changes weren't flushed. Fixed this by setting all exporters to go back to object mode before exporting. Also cleaned up some naming in exporter creator strings, it's "Blender" not "Blender3D".
2010-03-27Fix #21561: .ply exporter doesn't export normals.Brecht Van Lommel
2010-02-23pep8 cleanup + correction for external player operator return value.Campbell Barton
2010-02-16[#21177] Text editorCampbell Barton
Running scripts directly didnt call the register function, even though this is not essential its good to be able to run a script directly and see changes in the UI.
2010-02-15Inline tooltips and descriptions of export/importDaniel Salazar
Random fixes and tweaks in names and tooltips
2010-02-14change python scripts so modules which register with blender have a ↵Campbell Barton
register() function rather then making import automatically run the register functions (generally considered bad practice by python people)
2010-02-12correct fsf addressCampbell Barton
2010-02-12use a more direct way to get the active UV and VCol layerCampbell Barton
2010-02-02subtype support for properties in bpy.props.Campbell Barton
2010-01-31pep8 changesCampbell Barton
2010-01-27Missed these files in the last commit ..Matt Ebb
Also meant to mention, on the todo: show the confirmation before closing the file selector, rather than afterwards where it's inconvenient and easy to miss...
2010-01-10RNA/Py APICampbell Barton
change how data is added. eg. bpy.data.add_mesh(name) --> bpy.data.meshes.new(name) bpy.data.remove_lamp(lamp) --> bpy.data.lamps.remove(lamp) image and texture stil use add_* funcs
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-26replace dynamic_menu.py with Menu classmethods much less complicated.Campbell Barton
access append/prepend eg. bpy.types.INFO_MT_file_import.append(lambda self, context: self.layout.operator("import_some.format"))
2009-12-25operator draw function working again. needed to add layout to the operator ↵Campbell Barton
to give access to "self.layout" - like panels, headers and manu's have
2009-12-24* register operators like other classesCampbell Barton
* operators now return sets (converted into flags) * can't remove bpy_operator_wrap.c since macro's still use the custom register funcs
2009-12-16pep8 changesCampbell Barton
2009-12-13add pep8 headers so these scripts spit out errors when running pep8.Campbell Barton
made some changes but mostly these scripts will give pep8 warnings.
2009-12-13tabs 2 spacesCampbell Barton
2009-11-29Draw function for operators (just like panels), used for the redo popup, ↵Campbell Barton
file selector and redo tool panel. Used for ply export & select pattern.
2009-11-23more ui api changes.Campbell Barton
- remove functions such as operator_int(), operator_enum(), operator_string this mixed with keyword arguments in a way that made them hard to read. Instead, have operator() always return properties rather then needing an argument. - rename prop_pointer() --> prop_object(), pointer is more a C thing. - missed item_enumR(), rename to prop_enum()
2009-11-23rna UI api rename...Campbell Barton
note: this aims to follow pep8 however I chose to use 'prop/props' rather then 'property/properties' because it would make function names too long. itemR() --> prop() items_enumR() --> props_enum() item_menu_enumR() --> prop_menu_enum() item_pointerR() --> prop_pointer() itemO() --> operator() item_enumO() --> operator_enum() items_enumO() --> operator_enums() item_menu_enumO() --> operator_menu_enum() item_booleanO() --> operator_boolean() item_intO() --> operator_int() item_floatO() --> operator_float() item_stringO() --> operator_string() itemL() --> label() itemM() --> menu() itemS() --> separator() batch script used http://www.pasteall.org/9345
2009-11-19operators were copying the properties from the rna operator into the class ↵Campbell Barton
instance. however this meant the invoke function could not modify properties for exec to use (unless it called exec directly after) since the popup for eg would re-instance the python class each time. now use the operator properties directly through rna without an automatic copy. now an operator attribute is accessed like this... self.path --> self.properties.path
2009-11-04bugfix [#19804] .MDD is not working?? // Also filetype issue?Campbell Barton
- made all exporters default to the blend filename with the extension replaced - MDD's poll function now checks for an active mesh - multiline docstrings are written as multiline docs when generating epydocs
2009-11-02make python operator instances subclasses of the wmOperator when called.Campbell Barton
was subclassing the operator's type before. Removes the need for passing self.__operator__, can pass self directly.
2009-11-01Correct GPL license header for all python scriptsMartin Poirier
2009-10-31define operator properties in the class, similar to django fieldsCampbell Barton
# Before [ bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= ""), bpy.props.BoolProperty(attr="use_modifiers", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True), bpy.props.BoolProperty(attr="use_normals", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True), bpy.props.BoolProperty(attr="use_uvs", name="Export UVs", description="Exort the active UV layer", default= True), bpy.props.BoolProperty(attr="use_colors", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True) ] # After path = StringProperty(attr="", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= "") use_modifiers = BoolProperty(attr="", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True) use_normals = BoolProperty(attr="", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True) use_uvs = BoolProperty(attr="", name="Export UVs", description="Exort the active UV layer", default= True) use_colors = BoolProperty(attr="", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True)
2009-10-31change blender python interface for classes not to ise __idname__ rather ↵Campbell Barton
bl_idname since __somename__ is for pythons internal use. replacements... "__idname__" -> "bl_idname" "__props__" -> "bl_props" "__label__" -> "bl_label" "__register__" -> "bl_register" "__undo__" -> "bl_undo" "__space_type__" -> "bl_space_type" "__default_closed__" -> "bl_default_closed" "__region_type__" -> "bl_region_type" "__context__" -> "bl_context" "__show_header__" -> "bl_show_header" "__URL__" -> "_url"
2009-10-29Script templates, including game logic scripts from 2.4x and new operator ↵Campbell Barton
template. Files copied into scripts/templates will automatically appear in the menu. the operator template is a bit rough but a start.
2009-10-11- add torus back from 2.4x as an operatorCampbell Barton
bpy.ops.mesh.primitive_torus_add(major_radius=1, minor_radius=0.25, major_segments=48, minor_segments=16) - experemental dynamic menus, used for INFO_MT_file, INFO_MT_file_import, INFO_MT_file_export and INFO_MT_mesh_add. these can have items added from python. eg. - removed OBJECT_OT_mesh_add, use the python add menu instead. - made mesh primitive ops - MESH_OT_primitive_plane_add, ...cube_add, etc. work in object mode. - RNA scene.active_object wrapped - bugfix [#19466] 2.5: Tweak menu only available for mesh objects added within Edit Mode ED_object_exit_editmode was always doing an undo push, made this optional using the existing flag - EM_DO_UNDO, called everywhere except when adding primitives.
2009-09-29adding back changes from soc-2009-kaz branch.Campbell Barton