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-07-08added imports to templatesCampbell Barton
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-05-23replace context.areas.spaces[0] with context.space_dataCampbell Barton
2010-05-20view3d modal operator templateCampbell Barton
2010-04-27update for changes to blf moduleCampbell Barton
2010-04-18Updating operator_simple template with new register functions andDaniel Salazar
missing bpy import
2010-04-11PyAPICampbell Barton
- added new mathutils.Color() type, use with rna so we can do for eg: material.diffuse_color.r = 1.0 # also has hsv access material.diffuse_color.s = 0.6 - made Mathutils and Geometry module names lowercase.
2010-03-06pep8 cleanupCampbell Barton
2010-02-28make BGL and BLF modile names lowercaseCampbell Barton
2010-02-28python BLF module for drawing text, updated template to draw text in the 3D ↵Campbell Barton
view.
2010-02-28- template with an example of a modal operator drawing with opengl (draw a ↵Campbell Barton
line on the screen) - access to event.mouse_region_x/y - basic type checking to callback functions (use PyCapsule names)
2010-02-24[#21295] Escape key doesn't cancel python modal operatorsCampbell Barton
also fix distance with lamps being negative for typed in values.
2010-02-23pep8 cleanup + correction for external player operator return value.Campbell Barton
2010-02-21modal operator python templateCampbell Barton
2010-01-31pep8 changesCampbell Barton
2010-01-25Mathutils refactor & include in sphinx generated docs, (TODO, include ↵Campbell Barton
getset'ers in docs) - Mathutils.MidpointVecs --> vector.lerp(other, fac) - Mathutils.AngleBetweenVecs --> vector.angle(other) - Mathutils.ProjectVecs --> vector.project(other) - Mathutils.DifferenceQuats --> quat.difference(other) - Mathutils.Slerp --> quat.slerp(other, fac) - Mathutils.Rand: removed, use pythons random module - Mathutils.RotationMatrix(angle, size, axis_flag, axis) --> Mathutils.RotationMatrix(angle, size, axis); merge axis & axis_flag args - Matrix.scalePart --> Matrix.scale_part - Matrix.translationPart --> Matrix.translation_part - Matrix.rotationPart --> Matrix.rotation_part - toMatrix --> to_matrix - toEuler --> to_euler - toQuat --> to_quat - Vector.toTrackQuat --> Vector.to_track_quat
2010-01-23- panel python templateCampbell Barton
- nicer syntax to capitalize words
2010-01-16generic operator menu was searching for "type" and using the first enum ↵Campbell Barton
property if it wasnt found. this is too arbitrary and could break if roperty order is changed. store the property in the operator type that is to be used for menu and enum search func's. python function for searching operator enums on invoke. (just need dynamic python enums now) wm.invoke_search_popup(self)
2010-01-14spelling errors, no real changes to code.Campbell Barton
2010-01-14UV operator templateCampbell 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-07rna flag PROP_ENUM_FLAG which makes rna props a tuple of enums when ↵Campbell Barton
converted into a PyObject only used by wm.invoke_props_popup() currently
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-21patch from Ronan BignauxCampbell Barton
use python3 print()
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-18remove GPL headers from templates, am happy for them to be public domainCampbell Barton
2009-11-08pep8 whitespace commitCampbell Barton
bpy/rna api (no functionality change, just move getting the srna py base into a function)
2009-11-04- move WM operators out of bpy_ops.py into their own fileCampbell Barton
- fix operator template
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-31tabs to spaces, remove trailing white space. (apart of pep8)Campbell Barton
didnt do "release/scripts/io" since some exporters cant be auto converted
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.