Commit Graph

329 Commits

Author SHA1 Message Date
Campbell Barton
0672038093 Fixed a bug in obj_import
would load faces
f 0 1 2 \
  3 4 5

but not
f 0 1 2\
  3 4 5

Updated JMS's hotkeys script
2006-07-29 17:22:56 +00:00
Campbell Barton
d56de7edb7 Mostly fixed archimap issue where "fill holes" - island filling would hang ths script.
Some optimizations and Ctrl will escape the script properly if you want to skip merging the islands.

Thanks to Melchior FRANZ for the report and debug blend
2006-07-29 12:21:38 +00:00
Campbell Barton
792114e476 removed image_bake_from_uvs and replaced it with a module that does all the work and 4 scripts accessable from the UV/Image menu.
- bake wire
- bake image
- bake vcol
- bake normals

Fitting all the options for these into 1 PupBlock was not good.

An example of 4 different baking made from these scripts

http://members.iinet.net.au/~cpbarton/temp.png
2006-07-29 07:14:11 +00:00
Campbell Barton
9054a81eb2 Big speedup, 2-3x, from better mesh importing. 2006-07-28 19:09:09 +00:00
Campbell Barton
cb86998653 removing this uv relax python script until it has better all round results. 2006-07-28 09:57:50 +00:00
Campbell Barton
92e9a88996 fixed stupid error in flt_import (only allowed 15 materials, not 16)
added an option to Bake From UV's - Selected Faces Only
2006-07-28 09:27:11 +00:00
Campbell Barton
093bc78783 fixed flt_import problem adding materials to the mesh, made untextured faces not go pink.
removed mesh_bbrush, Not worth maintaining anymore with recent developments.
2006-07-28 08:59:44 +00:00
Campbell Barton
a7a3285235 Much needed update to flt_import.py
* NMesh to Mesh
* Optimized vertex importing
* Import NGons properly and make them blender FGons
* lots of other small updates

image_bake_from_uvs - ignore meshes without faceUV's
2006-07-28 08:17:04 +00:00
Campbell Barton
f6ddf8a3c3 removed kloputils, was too old/broken/messy to maintain- functionality needs to be split into a number of scripts.
bvh2arm was for importing empties in a BVH, direct bvh armature import should be good for next release. and Iv removed the Old bvh importer anyway.

Will add a slot in the imaeg meny for image scripts, renamed scripts to go there.
2006-07-28 02:38:02 +00:00
Campbell Barton
aa90678154 renamed texture baker to "Bake Image from UVs"
Added options to use material colors (can be multiplied with vcol)
Added wire option for UV Export type functionality. (implys no bleeding)
Added Option to render with no oversampling
changed alpha blending
2006-07-28 02:08:36 +00:00
Campbell Barton
3d0f27c19d uv_vcol_to_image.py
Added optional support for baking more then 1 unique mesh objects at once.
2006-07-27 17:29:34 +00:00
Campbell Barton
671a7b8e49 Moved this importer to the Mesh module and dropped meshtools dep's
Now imports ngons as fgons and dosent mess up with '#' comments at the start of the file.
2006-07-27 14:17:15 +00:00
Campbell Barton
3f5e14abef updated py scripts for changes in mathutils 2006-07-27 03:15:37 +00:00
Campbell Barton
6a087fcb8b 10-20% speedup with better logic and limit the cache size for box intersections. 2006-07-26 17:43:16 +00:00
Campbell Barton
0740e4ab1c removed the now unneeded resize4d operation for instant 2.43 incompatability. :/ 2006-07-26 12:54:54 +00:00
Campbell Barton
f36fc4fe21 removed reload,
BPyRender accedentaly left the scene rather then removing it.
2006-07-26 11:39:32 +00:00
Campbell Barton
fd281bec04 rewrote this script, for the new bones api.
Use a best fit mirror location to match pairs rather then bone names only.
Location matching works well, but name matching method can be added in also if its needed.
2006-07-26 11:12:29 +00:00
Campbell Barton
c03179c9b3 Added a script that makes an image from vertex colors using UV coords. the advantage this has over other existing scripts is that it bleeds the colors from edge polygons so you dont get mipmapping errors.
usefull for baking radiosity back into an image (with non overlapping UV's) and also has an option for including the texface image, and using normals (instead of colors)

Added BPyRender with a utility function to render off an ortho image from a number of objects.
2006-07-26 02:07:12 +00:00
Campbell Barton
1bf883b799 Added the option for all objects to have their UV's packed into the same texture space, enabled by default. 2006-07-26 01:30:21 +00:00
Campbell Barton
c4429fb796 Added a note in the object docs about object data and editmode
removed mirror_bone_weights, as it was a double another script, contacted the author and hes ok with it.
2006-07-26 00:41:52 +00:00
Campbell Barton
e7263b0c66 removed unused unzip function from console.py,
replaced   x,y,z= tuple(Vec)  with  x,y,z= Vec
2006-07-26 00:30:31 +00:00
Campbell Barton
6234c25678 This script randomizes the selected objects loc/size/rot a set ammount. 2006-07-26 00:20:55 +00:00
Chris Want
6122d501e7 Converting a mesh object with modifiers to a temporary mesh during
export would cause a problem since the temporary meshes created
would often reuse the same name for many objects. This fix mangles
the object name and uses this for the temporary mesh name to avoid
this problem. (The naming is important, since vrml has 'DEF' and 'USE'
statements that are used like C macros, so if two meshes have the
same name the exporter will try to 'recycle' data to keep file sizes
low).
2006-07-19 13:05:11 +00:00
Campbell Barton
38b6f07251 fixed error that mode this script not work in python 2.3 2006-07-18 10:20:43 +00:00
Campbell Barton
13e4883b96 Bugfix only for a queer bug that occurs (in non of my previous tests) where an edge is added with the same verts- an invalid edge of course. 2006-07-16 13:54:33 +00:00
Campbell Barton
f1eed11ad7 Missing constant added. 2006-07-13 13:41:26 +00:00
Campbell Barton
cfeaf8dfdf Simplified some parts of this script 2006-07-12 12:36:19 +00:00
Campbell Barton
b7e534f412 error it pup block title, still had clean meshes. 2006-07-12 12:09:43 +00:00
Willian Padovani Germano
d6ef293851 Scripts:
- Updating Blender Lip Synchro to the newest version sent by the author,
Benoit Foucque (Dienben). Thanks!

I'm committing a version with a few minor (tested) changes to make it
easier and to fix a small problem, the author received the changes a few
days ago. He would try to send another update implementing a couple
suggestions, but it may not come in time, so better have this. Anyway,
interested users can check his blog for test files and more information:

http://blenderlipsynchro.blogspot.com/
2006-07-12 10:21:38 +00:00
Campbell Barton
6d972220ac rename and update to archimap.
Mainly syntax optimizations and cleaned up parts.
2006-07-12 09:55:09 +00:00
Campbell Barton
0d9002354f Fixed many small errors in this script.
This is a real mess and should be removed/re-written but until we have a nice clean alignment script and its close to release, have to keep it.
2006-07-11 17:59:23 +00:00
Campbell Barton
893a36408c This shold fix 3ds opening on macs. thx blendix 2006-07-11 13:30:57 +00:00
Campbell Barton
5f761a4707 mesh cleanup optimized with some LC's
renameobjectbyblock - made more readable, only operate on objects in the current scene. optimized dict usage.
2006-07-10 10:46:53 +00:00
Campbell Barton
309fb2ec26 removed a script I wrote and added it under a different name.
Moved from NMesh to Mesh and optimized.
2006-07-10 09:22:07 +00:00
Campbell Barton
4c357b4ffa clicking on the second point of the gradient outside the mesh should have blended to alpha zero, but was raising an error, fixed. 2006-07-09 14:54:47 +00:00
Campbell Barton
a06c122772 needed this file for Gradient tool (Window/3d ray picking function) 2006-07-09 14:44:54 +00:00
Campbell Barton
158d430ca9 updated mesh boneweight copy not to error with no selection.]
updated obdatacopier to support mesh objects and added a more general way of choosing data to show or ignore in the button list.
2006-07-09 14:22:21 +00:00
Campbell Barton
219a6b245c vertexpaint_selfshadow_ao adds face uv to the mesh if there not alredy there...
added GPL header and docstrings to other scripts

removed double batch_name_edit, same file is object_batch_name_edit
2006-07-08 06:14:45 +00:00
Campbell Barton
73d50a8289 Updated to the latest cal3d exporter from http://svn.gna.org/viewcvs/soya/trunk/soya/blender2cal3d.py?view=log 2006-07-08 04:51:43 +00:00
Willian Padovani Germano
8aed0ead0b Gui:
[ #4581 ] related to scripts window updates, details here:

http://projects.blender.org/tracker/index.php?func=detail&aid=4581&group_id=9&atid=125

Scripts updated:

-Jean-Michel Soler updated some of his scripts: paths importer (ai,
eps, gimp, svg), kml / kmz importer and also updated Axiscopy.py by A
Vanpoucke (xand) and the knife script (this version handles multiple
materials) by Stefano Selleri and Wim Van Hoydonck. Thanks!
2006-07-07 18:39:51 +00:00
Campbell Barton
db5860df0c updated md2 exporter from 0.17.1 to 0.17.5
(not my work, asume Bob Holcomb's)
some extra features triangualte on export, usibility tweaks and try fan, strip improveemnts.
2006-07-07 16:09:41 +00:00
Campbell Barton
53efbdd3a3 Made this script motherball aware-
Metaballs that are numbered are not included - only the un-numbered motherball when getting the mesh data for objects.
2006-07-07 15:51:32 +00:00
Campbell Barton
9a168d8285 added list2MeshWeight and meshWeight2List - faster then the dict equivilents and better in some cases.
Speedup for bpymesh_redux (poly reducer) with reducing vertex weights. use list2MeshWeight and meshWeight2List.

renamed vertex gradient files

Removed reload()'s
- 3ds_import.py
- mesh_cleanup.py
- mesh_poly_reduce.py
- vertexpaint_selfshadow_ao.py
2006-07-07 10:46:46 +00:00
Campbell Barton
5b7ccc4bd9 Credits to JMS as a contributer 2006-07-06 19:14:56 +00:00
Campbell Barton
e8d39a3ca3 updated raw import/export nice error messages, optimized with LC's removed meshtools depencancy, use Mesh instead of NMesh 2006-07-06 19:02:22 +00:00
Campbell Barton
14a67d2a3c Added a vertex gradient tool. got the ok from willian to add if its well tested, can do vertex gradient and weight gradient- uses __vertex_gradient__.py which manages to do both. 2006-07-06 13:34:53 +00:00
Campbell Barton
80dda381f3 Made OBJ exporter better remove double normals and UVs on export.
Some people reported using this for games so added an option to calculate high quality normals (from BPyMesh)
2006-07-06 12:25:04 +00:00
Campbell Barton
02bb354cbe merged the functionality of both these scripts into 1 new script,
Both had small problems,

This script works with soft bodies (as fixfromarmature does) and works on multiple objects at once as Apply_def does.
Made them use Mesh over NMesh unless soft bodies are involved- in that case is uses NMesh because Mesh cant get soft body info at the moment.
This script also works with non mesh objects - mballs, text, nurbs etc.
2006-07-06 11:09:44 +00:00
Campbell Barton
1c9a7a032b fixed a bug in poly redux's vgroup weight merging (was reducing the weight each collapse by about half)
fixed some other UI logic in the python menu script
Added an option to use a vertex group for a reduction weight map to force reducing some areas more then others.

Mesh epydocs activeGroups can be None as well as string.
2006-07-05 20:37:07 +00:00
Campbell Barton
d360c4fadf fix for bug 4307, keyframe data was being written and that was buggy somewhere, so commented it out and it works ;)
Theres some other error that only happens when exporting fairly high poly meshes, but this problem is with the old exporter also.

Also added export for non mesh objects as meshes- text, metaballs etc and null material slots dont stop the script.
2006-07-05 07:10:03 +00:00