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
2009-09-28- removed 2.4x release/scriptsCampbell Barton
- moved release/io and release/ui into release/scripts/io, ui - updated scons, cmake, make When porting 2.4x scripts back, use a command like this so as not to loose the commit history... svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/raw_import.py release/scripts/io/import_raw.py
2009-06-29fix for bug while importing transparent faces:Dalai Felinto
image.has_data can't be called before you load an image, otherwise it will return false even for valid images. The workaround is to try to run image.glLoad() before. That will crash if the image is corrupted (for we are using try/catch here). Campbell (ideasman42) thinks it would be better to have an api call proper for that. Since 2.4xx is close to its end I really don't think it's time to keep working in its API. Specially if we have similar functions doing what we need. @ Arystanbek (kazanbas): I'm done with the obj fixes I told you. You are free to go with the importers :) You may want to take a look at implementing a proper image.load() to 2.5 as Campbell suggested.
2009-06-27fix for importing of transparent faces from .mtl files - ZTrans now is set ↵Dalai Felinto
for them as well. (what makes importing from SketchUp really nice)
2009-06-18Attribute PolyDimensions GmbH for funding OBJ spline import/export.Campbell Barton
2009-06-13in some cases importing without materials could raise a python error.Campbell Barton
surprising nobody found before. reported by <chewed-on> who doesnt want his real name used for some reason.
2009-06-13no need to use mathutilsCampbell Barton
2009-06-13OBJ ImportCampbell Barton
* Wasn't setting the curve 3D option * The nurbs object name could be None which caused an error, check its set. OBJ Export * Off by 1 error on closed nurbs was incorrect, broke other importers but worked with blender. * Nurbs verts were not adding to the total vert count, scrambling meshes added after (somehow my first test case had all the curve objects last)
2009-06-13X90 Rotate option so you can export without rotation and import, keeping the ↵Campbell Barton
same orientation.
2009-06-12OBJ import support for nurbs curvesCampbell Barton
Imports nurbs with orderU and endpointU (inferred from weights). No support for vert-weights, surfaces, 2D curves or non-bspline's yet. fix for exporting closed nurbs, was overlapping too much of the curve.
2009-05-13[#18694] Added support for Wavefront OBJ groups for both the import and ↵Campbell Barton
export scripts from Paolo Ciccone (pciccone) Im not that keen on this functionality since vertex groups in blender are for weight painting and OBJ's groups are more like sub-objects, The conversion between these is a poor approximation (one vertex group per face). But this is still useful for using blender with poser so accepting these 2 patches. Made some changes from the patch *Export* - vgroup off by default, since this is mainly useful for corner cases - findVertexGroupName() - changed how exporting selects a vertex group for a face, use the highest combind weight for each group instead of the number of checking how many times the verts are in a group because they could have a zero weight. - findVertexGroupName() - would fail if a faces verts were not in any groups, now return a (null) group - Allow modifiers to export with vgroups *Import* - disable by default - ignore (null) groups - fixed a problem where the patch broke SPLIT_GROUPS - move the group definition out of global namespace, breaks importing as a module. --- Patch submission info The import/export scripts included with Blender 2.48 don't save/preserve groups defined in OBJ file. This presents a couple of issues: users loading an obj file with groups are not able to use a rather important set of data. When the file is then saved the groups are lost bringing up both the issue of data loss and loss of functionality as groups are used for rigging and morph target creation for Poser/DAZ Studio and all compatible applications. Of course other animation/modeling packages that use OBJ files might be affected. The solution that I present here simply patches the excellent python scripts written by Campbell Barton and Jiri Hnidek. The new code implements the preservation of groups by creating Blender vertex groups during import and by re-writing those groups in the OBJ file during export. Of course group ownership is idetermined at the face/polygon level and not at the vertex level. This rather simple solution makes Blender instantly one of the better tools to create Poser Morph targets (Full Body Morphs) and conforming figures and clothing. Of course it's also adding a more complete support for the whole OBJ spec. The patches are fitting well inside the established logic, have a minimal impact and are totally transparent to the user. See the attached video (about 7 minutes long) for more details. I noticed that the original scripts are formatted with tabs. I think it would be a good idea to follow the standard Python recommendation and convert the scripts to use spaces. I didn't want to do it on my side as it would generate a patch that replaces the whole file, not something that I wanted to do with my first submission :) But it would help if people with access to SVN could do it. Here is a short video that demonstrates the updates: http://www.paolociccone.com/blender_obj_scripts.html Cheers! ----
2009-04-29remove uneeded checks and testMethod from KX_ConstraintWrapper, typo in ↵Campbell Barton
import_obj
2009-04-10strip indentation from lines of OBJ files.Campbell Barton
OBJ's from VMD's molecular visualization program had this.
2009-01-30[#18241] Very minor bugfix and typo correction for wavefront obj exporter ↵Campbell Barton
and importer python scripts from Michael Judd. Also removed .keys() for a loop in impor_obj.py since its the default dictionary iterator.
2008-10-22added an option for python Draw.UIBlock(func, mouse_exit) so moving the ↵Campbell Barton
mouse outside the popup wont close it. Stops FBX Export and OBJ I/O from flickering a lot.
2008-10-19modified OBJ import and export UI's to be less confusing with nicer layout. ↵Campbell Barton
removed an unneeded workaround in fbx export.
2008-09-25patch [#17683] Fix OBJ import line endingsCampbell Barton
from Tom Nixon (greysquare) for fixing [#17681] .OBj import issues
2008-09-17* Some tweaks to the OBJ importer/exporter after chatting with CampbellMatt Ebb
- renamed the 'morph target' option to 'keep vertex order' - enabled 'keep vertex order' by default This should improve usability for importing and exporting shape keys, point caches, mdds ,etc.
2007-12-19Problem with OBJ import found by Mark Ivey - would not import an obj if all ↵Campbell Barton
verts were int values.
2007-08-01misc changes from stableCampbell Barton
2007-05-29remove xreadline, some other small updates (testing new svn)Campbell Barton
2007-04-18PyAPI.Campbell Barton
moved bpy into bpy.data and bpy will be eventually replace the root level 'Blender' module. currently we have bpy.library bpy.config and bpy.data
2007-04-15Made X11 use _NET_WM_STATE_MAXIMIZED_HORZ and _NET_WM_STATE_MAXIMIZED_VERT ↵Campbell Barton
when opening (if -p isnt given as an arg) gsr and myself both wrote a patch for this, using gsr's. import_obj - another error in splitting fixed.
2007-04-14import_obj - bugfix, split by groups didnt work.Campbell Barton
disabled lamp panel and camera panel from editing lib data
2007-03-29ICVS: ----------------------------------------------------------------------Campbell Barton
import OBJ dosnt raise a Py Error when no image is given for a material export FBX works much better, tested 179 models and dosnt crash on any now. tested import export with large scene, 375,000 tri's. Mesh.py doc note about UV coords,, editmesh_add minor typo
2007-03-27py apiCampbell Barton
bpy.*libBlickSeq*.new() - name is now an optiona arg. moved some more scripts to bpy.* api.
2007-02-14Added GPL Headers to some of my scipts that were missing it. also changed ↵Campbell Barton
the header of a few others. Only code change is cookie cut from View now only uses 3d curves to cut.
2007-01-26added option "morph target" since many people complain that verts are ↵Campbell Barton
re-ordered with some options enabled.
2007-01-26fixed an obscure bug in obj import (possibly in Mesh.c) that made adding ↵Campbell Barton
edges as faces mess up. export obj now dosnt remove double UV's, its too slow. updated version numbers to 243 and other minor changes.
2007-01-13import_obj - name imported objects/mesh dataCampbell Barton
weightpaint_clean - report how many verts removed from groups save_theme - no need to do type(''), just use type(vat) == str
2006-12-29added a call to mesh calcNormals so smooth faces look rightCampbell Barton
2006-12-28made scn.objects more flexible... you can now things like...Campbell Barton
scn.objects.selected = [] # deselect all scn.objects.selected = scn.objects # select all scn.objects.context = [ob1, ob2...] Added epydoc examples and updates importer scripts to use this de-select-all method.
2006-12-16update to Axiscopy, more error checking. basic functionality the same.Campbell Barton
- Dont allow it to apply the matrix twice to a linked-dupe. (Same as Apply Loc/Size/Rot) - Make sure that the source object is active, not just the first selected object. - Use Mesh instead of NMesh. - use mesh.transform(mat) rather then vert by vert vec*mat Other scripts had pupBlock changes for better layout.
2006-11-28when importing am OBJ referencing an unknown image (PSD in linux for eg) - ↵Campbell Barton
it creates a dummy image. checking the .depth of this dummy image raised an error. now a check for has_data is done.
2006-11-25Was crashing the import_obj script when using Python 2.3.Ed Halley
Python 2.4+ supports large list processing with generators, but Python 2.3 will break if you use that syntax. Until we depend on the newer versions, I have commented out the generator syntax and only use the list-comprehension type instead.
2006-11-03added Jiri as a contributer to the obj importerCampbell Barton
Added a new script - 'Dump All Images to Path' This script copies all the images used by 1 blend to a spesified path and references the new images from Blender Usefull for moving projects between computers or when you reference many images. naming collisions and multiple images using the same image path are delt with properly only creating new image names when needed. Blender images will reference the newly copied files - So be mindfull when you save your blend after running the script. Notes, images with the path "Untitled will be ignored" Image path collisions are managed by enumerating the path names so images will never be overwritten at the target path.
2006-11-02added batch import back in - Hold shift as you click importCampbell Barton
2006-10-29An arg was left in that should have been removed, raised an error for ↵Campbell Barton
reflect MTL files.
2006-10-13fix for [ #5093 ] OBJ importer gives errors on usageCampbell Barton
extending a list was using a python 2.4 compatible syntax but failed with 2.3
2006-10-05images wernt being applied to textures on importCampbell Barton
added alpha support for material and texface. so teh faces transp mode is set as well as the Alpha and ztransp settings for the material
2006-09-26removed .parent by mistake in Object.cCampbell Barton
made some of the importers raise a nice error if a file disnt exist rather then a python error. will eventually apply to all.
2006-09-25BPyMessages - added "Save over" message for scripts to use, so as not to ↵Campbell Barton
overwrite files. import_obj - comments, docstring additions, cleanup. OBJ export: -renamed export_obj faster edge exporting (use edges LOOSE flag rather then finding zero face user edges) check for file before overwriting use object iterators
2006-09-20fix in MTL library loading, if none is spesified the same name as the OBJ is ↵Campbell Barton
used.
2006-09-20OBJ Import should now meet up to the python standardsCampbell Barton
http://mediawiki.blender.org/index.php/ScriptDev/Guidelines * Recursive search was enabled by default, if your OBJ happened to be at root path, loading the OBJ could take ages. Made recursive searching optional. * MAX's MTL exporter replaces spaces with underscores, image loading checks for this and loads the name with spaces if the one with underscores dosnt exist. not realy a problem with the importer but annoying to manually replace lots of images.
2006-09-09fixed error fix in obj import mesh splitting.Campbell Barton
2006-09-05resolved invalid bounding box from the object by freeing a new meshes ↵Campbell Barton
bounding box. added back bound box constraint to obj import (many OBJs have values outside the defulat clipping range) BPyRender.py was missing a flag assignment.
2006-09-04rewrite of the obj importer,Campbell Barton
The original obj importer was ok but it gradually got slower as it had to support quirks of rare files. This importer supports these quirks without bad workarounds and ~250 less lines. * Moved from NMesh to Mesh * Import smooth groups as hard edges * Import Lines from sketchup (Thanks Wavk) * Uses less memory * faster (On a 70meg poser test model, benchmarked from 130sec to 41.2sec) Not yet supported from the old importer- * Scaling down to a bounding area * Importing multiple obj's at once * Using existing materials in the .blend * Importing as a group instance.