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
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-27replace import *'s with named imports (using * is convenient for some ↵Campbell Barton
scripts but considered bad practice by python devs)
2011-02-17pep8 cleanup and remove unused vars/importsCampbell Barton
2011-02-11patch [#25809] Auto-Registration as utility function.Campbell Barton
This removes auto-registration, committed by Martin r30961. Realize this is a contentious topic but Brecht and myself both would rather opt-in registration. TODO: - addons need updating. - class list will be modified to use weakrefs (should have been done for existing system too). - will move bpy.types.(un)register functions into bpy.utils.(un)register_class, currently including these functions in a type list is internally ugly, scripts which loop over types also need to check for these.
2011-02-09use update() rather then update_tag(), needed for making edge data.Campbell Barton
2011-02-07rename ID.update() --> update_tag() since this function only tags for ↵Campbell Barton
updating and scene.update() executes the update.
2011-02-05update for changes in mathutils.Campbell Barton
2011-01-02geometry moduleCampbell Barton
- rename functions from camel case. - added docs for undocumented methods. - minor functional changes with exceptions and accepting 3d/4d vectors where it makes no difference. Renamed: - geometry.Intersect -> intersect_ray_tri - geometry.ClosestPointOnLine -> intersect_point_line - geometry.PointInTriangle2D -> intersect_point_tri_2d - geometry.PointInQuad2D -> intersect_point_quad_2d - geometry.LineIntersect -> intersect_line_line - geometry.LineIntersect2D -> intersect_line_line_2d - geometry.BezierInterp -> interpolate_bezier - geometry.TriangleArea -> area_tri - geometry.QuadNormal, TriangleNormal -> normal - geometry.PolyFill -> tesselate_polygon - geometry.BoxPack2D -> box_pack_2d - geometry.BarycentricTransform -> barycentric_transform
2011-01-01pep8 cleanupCampbell Barton
2010-12-19 fix for make-dupli-face operator & vector multiplication, tab/space error ↵Campbell Barton
in last commit.
2010-12-19Bugfix [#25291] Objects that should not have subsurface modifier haveJoshua Leung
it (eg cameras) When trying to add a modifier to non-geometry objects, warnings are now shown instead of just adding some (useless) modifiers that cannot be removed later.
2010-12-08pedantic word ordering change.Campbell Barton
- wm.add_modal_handler -> modal_handler_add - wm.add_fileselect -> fileselect_add - ob.add_shape_key -> shape_key_add - VIEW3D_OT_add_background_image -> VIEW3D_OT_background_image_add (same for remove) Also made 2 internal cmake vars hidden.
2010-10-31bugfix [#24466] Selecting of object with pattern leads to strange behaviorCampbell Barton
The undo problem was caused by python operators returning 'RUNNING_MODAL' rather then the return value from wm.invoke_props_popup(self, event) - 'FINISHED'. This was done because returning FINISHED would free the operator causing the buttons redo handler to try and run a freed operator and crash. So the real fix is to disallow any operators to use wm.invoke_props_popup(self, event) if they dont have the REGISTER option enabled, fixing the crash and redo problem.
2010-10-28patch [#24424] Python scripts update for API changesCampbell Barton
from Filiciss Muhgue (filiciss)
2010-10-26move geometry python module into mathutils.geometry, since it provides ↵Campbell Barton
utility functions using mathutils types.
2010-09-24Annoying hack to pretend that an operator and its properties are the same, ↵Campbell Barton
when passing an operator to an rna function argument which accepts 'AnyType', then pass the properties instead. This means we can do operator drawing without passing self.properties as an argument. while this check if quite specific, if this gives problems later on we should probably change operators not to try to mix an operator and its properties, it looks nice to a scripter but internally is not easy to manage.
2010-09-09replace self.properties.foo --> self.fooCampbell Barton
2010-09-07ran through pep8 checkerCampbell Barton
2010-09-03SVN maintenance.Guillermo S. Romero
2010-09-02rna context renameCampbell Barton
* context.main & bpy.types.Main --> context.blend_data & bpy.types.BlendData * context.manager --> context.window_manager
2010-08-27rna api changesCampbell Barton
- mesh.add_geometry(v, e, f) --> mesh.vertices.add(tot), mesh.edges.add(tot), mesh.faces.add(tot) - mesh.add_material(mat) --> mesh.materials.link(mat) changed material.link so it always adds a material even if it exists in the list, this behavior is good for users but not scripts since it can mess up indicies (some formats may have the same material set twice).
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 naming: verts -> verticesCampbell Barton
2010-08-17apply rna rename most of the show_*, names.Campbell Barton
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-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-31patch [#23110] isolate render type UI labelling + operator to clear all hide ↵Nathan Letwory
render flags in scene by Peter Schulman
2010-07-23fix for error in select hierarchy if no children exist.Campbell Barton
2010-07-15Apply first pass of edits to rna values from rna_booleans.txt.Campbell Barton
These are not animated and are best not change names like this too late in the release. ActionGroup.selected -> select: boolean Action Group is selected BezierSplinePoint.hidden -> hide: boolean Visibility status BezierSplinePoint.selected_control_point -> select_control_point: boolean Control point selection status BezierSplinePoint.selected_handle1 -> select_left_handle: boolean Handle 1 selection status BezierSplinePoint.selected_handle2 -> select_right_handle: boolean Handle 2 selection status Bone.restrict_select -> hide_select: boolean Bone is able to be selected Bone.selected -> select: boolean CurveMapPoint.selected -> select: boolean Selection state of the curve point EditBone.restrict_select -> hide_select: boolean Bone is able to be selected EditBone.selected -> select: boolean EditBone.selected_head -> select_head: boolean EditBone.selected_tail -> select_tail: boolean EditBone.locked -> lock: boolean Bone is not able to be transformed when in Edit Mode EditBone.hidden -> hide: boolean Bone is not visible when in Edit Mode NEGATE * FCurve.disabled -> enabled: boolean F-Curve could not be evaluated in past, so should be skipped when evaluating FCurve.locked -> lock: boolean F-Curve's settings cannot be edited FCurve.muted -> mute: boolean F-Curve is not evaluated FCurve.selected -> select: boolean F-Curve is selected for editing NEGATE * FCurve.visible -> hide: boolean F-Curve and its keyframes are shown in the Graph Editor graphs FCurveSample.selected -> select: boolean Selection status GPencilFrame.selected -> select: boolean Frame is selected for editing in the DopeSheet GPencilLayer.locked -> lock: boolean Protect layer from further editing and/or frame changes GPencilLayer.selected -> select: boolean Layer is selected for editing in the DopeSheet Keyframe.selected -> select: boolean Control point selection status Keyframe.selected_handle1 -> select_left_handle: boolean Handle 1 selection status Keyframe.selected_handle2 -> select_right_handle: boolean Handle 2 selection status MeshEdge.selected -> select: boolean MeshEdge.hidden -> hide: boolean MeshFace.hidden -> hide: boolean MeshFace.selected -> select: boolean MeshVertex.hidden -> hide: boolean MeshVertex.selected -> select: boolean MotionPathVert.selected -> select: boolean Path point is selected for editing NlaStrip.selected -> select: boolean NLA Strip is selected NlaTrack.locked -> lock: boolean NLA Track is locked NlaTrack.muted -> mute: boolean NLA Track is not evaluated NlaTrack.selected -> select: boolean NLA Track is selected Object.restrict_render -> hide_render: boolean Restrict renderability Object.restrict_select -> hide_select: boolean Restrict selection in the viewport Object.restrict_view -> hide: boolean Restrict visibility in the viewport Object.selected -> select: boolean Object selection state ObjectBase.selected -> select: boolean Object base selection state PoseBone.selected -> select: boolean Sequence.right_handle_selected -> select_right_handle: boolean Sequence.selected -> select: boolean SplinePoint.selected -> select_control_point: boolean Selection status TimelineMarker.selected -> select: boolean Marker selection state Sequence.left_handle_selected -> select_left_handle: boolean ActionGroup.locked -> lock: boolean Action Group is locked Bone.hidden -> hide: boolean Bone is not visible when it is not in Edit Mode (i.e. in Object or Pose Modes) SplinePoint.hidden -> hide: boolean Visibility status FModifier.muted -> mute: boolean F-Curve Modifier will not be evaluated note: rebaned uv_select to select_uv
2010-07-14bugfix [#22843] Cannot export to folder with ".blend" on the end.Campbell Barton
2010-07-14select parent/child now works for multiple selections ([/] keys)Campbell Barton
2010-07-03rna api:Campbell Barton
rename object.matrix --> matrix_world added object.matrix_local (parent relative matrix)
2010-06-09pep8, whitespace editsCampbell Barton
2010-05-20obscure sounding feature thats actually useful: isolate render typeCampbell Barton
Select lamp, isolate, all other visible lamps are disabled.
2010-04-25py apiCampbell Barton
- mathutils.Color.hsv attribute. eg. material.diffuse_color.hsv = 0.2, 0.8, 0.4 - Vector/Euler/Quaternion/Color now only take a single seq arg. - internal function for parsing arrays. (cleanup messy internal list/vector/tuple/seq parsing) - didnt update rigify yet.
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-03-01replace operator options bl_undo and bl_register with bl_optionsCampbell Barton
eg. bl_options = {'REGISTER', 'UNDO', 'BLOCKING', 'GRAB_POINTER'} This didnt exist when operators were originally wrapped.
2010-02-25select parent/child in object mode with [] keys, like pose mode.Campbell Barton
also needed to extend the RNA api to allow C to set enums without meaningful values.
2010-02-23pep8 cleanup + correction for external player operator return value.Campbell Barton
2010-02-22bugfix [#21233] Crash in pyapi, with new object.Campbell Barton
pass the obdata as an argument rather then assigning later so as not to allow an invalid state.
2010-02-17join as UVs referenced older api function nameCampbell 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-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-12Clean up of tooltips in py operators and better operator name forDaniel Salazar
randomize transform
2010-02-12- select active camera operatorCampbell Barton
- calling menu use exec rather then invoke
2010-02-10make dupliface rotation was wrong. Campbell Barton
2010-02-10make dupliface operator (access from object menu)Campbell Barton
scene.object.link() now returns the new ObjectBase