Age | Commit message (Collapse) | Author |
|
__init__.py still, temp break import/exporters)
|
|
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.
|
|
property and invoke function at the moment.
|
|
- OBJ import/export now work with non utf8 paths. (all exporters and importers need changes like this)
- strip non utf8 chars from new ID blocks (also applies to renaming)
- set the file rename button to allow non-utf8 chars.
|
|
|
|
|
|
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)
|
|
Added an operator "Update Animation Data",
access from the search menu to update drivers and fcurves.
|
|
least its very unlikely).
|
|
|
|
|
|
drawing function.
|
|
matrix class methods since this is acceptable in python. eg: dict.fromkeys() and groups them more logically.
mathutils.RotationMatrix -> mathutils.Matrix.Rotation
mathutils.ScaleMatrix -> mathutils.Matrix.Scale
mathutils.ShearMatrix -> mathutils.Matrix.Shear
mathutils.TranslationMatrix -> mathutils.Matrix.Translation
mathutils.OrthoProjectionMatrix -> mathutils.Matrix.OrthoProjection
|
|
* Removed duplicate use_animation variable, sorry!
* Added some descriptions.
|
|
* Script was broken, fixed.
* Started some code cleanup, mainly variable names.
* Tabs > Spaces
|
|
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.
|
|
*Removing some ancient lines.
|
|
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
|
|
|
|
check for an active object before switching modes.
|
|
|
|
|
|
rename object.matrix --> matrix_world
added object.matrix_local (parent relative matrix)
|
|
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)
|
|
* filename == "foo.ext"
* filepath == "/path/to/and/including/foo.ext"
this was alredy followed in some places not not everywhere.
|
|
- 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.
|
|
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.
|
|
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".
|
|
|
|
because references to materials from previous exports were not cleared.
|
|
|
|
filename functions should not be spesific to images.
rename BKE_get_image_export_path() to BKE_rebase_path() and take a filename arg rather then an image.
obj export file copy was also not working because of a missing import.
|
|
|
|
pass the obdata as an argument rather then assigning later so as not to allow an invalid state.
|
|
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.
|
|
Random fixes and tweaks in names and tooltips
|
|
register() function rather then making import automatically run the register functions (generally considered bad practice by python people)
|
|
|
|
[#21053] 2.5alpha0 export obj problem
+ some minor changes.
|
|
object.materials -> material_slots
since neither contain textures or materials directly.
|
|
|
|
|
|
|
|
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...
|
|
|
|
is broken.
Before fixing this I'd like to clean BPY a bit.
|
|
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
|
|
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() ?)
|
|
* 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)"
|
|
access append/prepend eg.
bpy.types.INFO_MT_file_import.append(lambda self, context: self.layout.operator("import_some.format"))
|