Commit Graph

418 Commits

Author SHA1 Message Date
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
Ton Roosendaal
de0af9d951 Bugfix #4603
UV coordinates for plane preview (buttons) was rotated 90 degrees.
2006-07-04 20:56:55 +00:00
Campbell Barton
518fef7f29 mesh_mirror_tool.py code cleanup, updated UI, tooltips added docstrig.
3ds_import.py minimal updates- changelog.
2006-07-04 10:09:21 +00:00
Campbell Barton
ab5dffc1cd strip 3ds materials names of spaces, 3ds import added a "Bounds" option enabled by default- manu models would import so large that people couldent see the objects without scaling by 0.01.
Other changes are minor tooltips
2006-07-04 01:56:49 +00:00
Campbell Barton
c4b4e2922f more updates, mostly 2.3 error checking, nice messages when pythons not installed and some nendo import optimizations.
BPyMesh will work with the exception of the redux function in py2.3
2006-07-03 20:17:40 +00:00
Campbell Barton
b8d8c1fd60 BPyMesh getMeshFromObject was failing to copy the vert weights because is a dumb mistage within a try - Thanks lightbringer for finding the error 2006-07-03 07:14:48 +00:00
Campbell Barton
a33feaf49b Lots of scripts are using Object.Get() where Scene.GetCurrent().getChildren() is what is needed.
When through and replaced the obvious ones but there are still a a few Id rather not touch without more about whats going on.

Did quite a few changes to export-iv also.
2006-07-03 05:05:28 +00:00
Campbell Barton
acef774a61 Modernized radiosity i/o - better errors, optimized with LC's modifiers and matricies applied. 2006-07-03 04:12:53 +00:00
Campbell Barton
8a10a77345 remove this mesh cleaning function, have alredy added a new Mesh based one (as opposed to NMesh). 2006-07-03 03:27:46 +00:00
Campbell Barton
e70610ab1e Update to ply export, give nice messages to the user rather then throwing errors at the user.
Export mesh data with modifiers and objects matrix applied. export not only mesh data but text, nurbs etc (thanks to BPYMesh getMeshFromObject)

Small updates to ply import, dont set the TEX of a face (no pink faces anymore)
2006-07-03 03:22:48 +00:00
Campbell Barton
6c4a0d7769 added python 2.3 set importer for BPyMesh_redux
made ngon loop-reduce function faster by replacing dicts with sets
off_export has some errors, modernized the script.
added a python 2.3 reversed compat function - just uses ls[::-1]

Further 2.3 compat testing needed.
2006-07-03 01:52:14 +00:00
Campbell Barton
aaf05a1d20 Made geometrys polyfill work with all iterators (not just lists) and updated bpymeshes ngon to ignore polylines with <3 verts. 2006-07-02 23:09:37 +00:00
Willian Padovani Germano
9d4ae5ed19 Scripts:
- Jean-Michel Soler (thanks!) pointed that the 3ds importer was missing
license info. Added a GPL license block copied from the 3ds exporter by
the same author.
2006-07-02 19:50:30 +00:00
Campbell Barton
6adf0e6543 finish adding Geometry module, removed polyfill from mathutils, updated epydoc links and updated BPyMesh NGon function 2006-07-02 15:28:28 +00:00
Campbell Barton
348a4c03c6 More fixes to lightwave ngon filling, fallback to fan fill- ngon function has working optimized loop detection, uses PolyFill function.
LWO cheats by having multiply poly lines in 1, by doubling back on the line. BPyMeshes NGON function splits this into multiple NGons so PolyFill can fill properly.
Tested with 1711 LWO files - (2 had unreadable faces) 77meg and 103 OBJ files- all worked.
2006-07-02 09:44:44 +00:00
Campbell Barton
577494dc05 Further tweaking to the scanfill stuff 2006-07-01 20:26:07 +00:00
Campbell Barton
b0a3566409 Made BPyMesh's ngon a lot better- handels polylines that loop back on themselves, vert length edges and removes doubles (also slower :/ )
Lightwave importer uses this and also makes FGons from imported ngons.
2006-06-30 15:41:20 +00:00
Campbell Barton
6f8b6b3a35 NGon fan fill fallback had an error in the indicies it returned.
Further changes need to be added but theres a bug in Blender that prevents the NGon function from working.
https://projects.blender.org/tracker/index.php?func=detail&aid=4544&group_id=9&atid=125

Lightwave major update by Alessandro Pirovano (uaraus) intergrated with my changes.
Tested with ~ 500 models to import without throwing an error.
 Added subsurf back, image loading fixes and removed meshtools dependancy
2006-06-30 11:22:45 +00:00
Campbell Barton
e5b3fb85e4 Made lightwave import work with images by removing internal image loading wrapper and use BPyImage.comprehensiveImageLoad
Sped up with LC's for vert loading.
tried to removing meshtools as a dependancy, but cant do that everywhere.
2006-06-29 07:06:54 +00:00
Campbell Barton
cd7cbc1e47 bugfix 4501
changed maximum length of the text entry to 399 to conform with Blenders limit.
2006-06-27 13:26:00 +00:00
Campbell Barton
7f3ce43f04 removed numerious spelling mistakes 2006-06-26 07:54:10 +00:00
Campbell Barton
cd87c75a2f removing this script because editmode select group replaces it. 2006-06-26 03:42:38 +00:00
Ton Roosendaal
e491e73db6 Updated preview, with correct camera end clip 2006-06-20 14:33:08 +00:00
Ton Roosendaal
0ac1cf6b44 New preview blend, without OSA and with entirely closed tiled cube. 2006-06-20 09:32:25 +00:00
Campbell Barton
b2dd3db414 Made 3ds import remove 0,0,0 dummy vert (Thanks Ken)
removed set() from BpyMesh and added some uv utility functions.
2006-06-19 01:27:41 +00:00
Willian Padovani Germano
2ca99a5e09 Scripts:
- Jean-Michel Soler updated the svg to obj module used by Paths
Importer (thanks!)
- user request: added option to control whether user prefers per face
(uv face select "TwoSided" toggle) or per mesh ("Double Sided") single /
double face info in ac3d exporter.

BPY:
- Blender_ShowHelp() was now crashing Blender when called for the
second time, due to EXPP_dict_set_item_str decrementing the reference
count of an object passed as argument to Blender_ShowHelp() (so not
owned by that function).
2006-06-18 19:05:51 +00:00
Ton Roosendaal
6c79000713 Updated previewblend, texture preview had minor line on left hand 2006-06-16 15:33:14 +00:00
Campbell Barton
a4c2492d6e Updated this script and added some functions, this wont effect eny existing python tools.
added functions
pickMeshRayFace(me, orig, dir):
pickMeshGroupWeight(me, act_group, orig, dir):
pickMeshGroupVCol(me, orig, dir):
facePlanerIslands(me):
edgeFaceUserCount(me, faces= None):
2006-06-16 10:59:56 +00:00
Campbell Barton
be22b6e8e8 Cleanum, remove unneeded 'raise's
Stupid hack- added 0,0,0 dummyvert so UVs import right (unrotated).
This script aparently dosent work on powerpc... (endian issues Im guessing)
2006-06-16 10:41:21 +00:00
Martin Poirier
8008783e27 == UV Export ==
Based on Ed Halley's report.
* Default size is now 512, min is 64, max 8192
* Loading saved params check that Editor path is valid.
2006-06-15 22:27:36 +00:00
Ton Roosendaal
a31829fe20 Added with binary tag 2006-06-15 13:29:01 +00:00
Ton Roosendaal
e0eb78a3bc Removed preview.blend, as added as ascii 2006-06-15 13:28:23 +00:00
Ton Roosendaal
ff46d6a588 Updated icons image and preview blend 2006-06-15 13:08:50 +00:00
Willian Padovani Germano
0604c3a4ec BUG #4323:
Help->System->Benchmark (the Tkey benchmark) returned timings  even if
user cancelled the pupmenu. Was just missing a check
for -1 in toets.c -- wonder how old this one was... Reported by Wim Van
Hoydonck.

Scripts:
- Updated Jean-Michel's hotkeys script for Blender 2.42.
- Followed Pieter Visser's suggestion and added version info to the menu
names of the older collada scripts (v1.3.1).

Thanks guys!

Note for builders: nevermind if you already compiled 2.42RC1, these
updates are not critical at all and can be left for the release or RC2.
2006-06-14 21:04:53 +00:00
Jean-Luc Peurière
e65df3e89d attempt to fix the release makefiles 2006-06-12 17:15:31 +00:00
Willian Padovani Germano
7cad5ce842 Bug #4279: doc browser script broken.
http://projects.blender.org/tracker/?func=detail&aid=4279&group_id=9&atid=125

Thanks Wim Van Hoydonck for report / fix.
2006-06-11 21:35:14 +00:00
Peter Schlaile
c4229b0272 ==Sequencer==
Fixed the blur-plugin (and maybe a lot more) crashes by expecting
future float-buffer aware sequencer-plugins to have a bumped PLUGIN_VERSION
number. Since quality and speed is degraded by converting the float
buffer first to byte, performing the effect on bytes and then converting
back again an additional warning is displayed in the effect strip,
suggesting to update the used sequencer-plugins.

Fixed some more crashes along the way.

Float buffer aware sequencer plugins should
- first check, if the output-ibuf has a rect_float
  => perform all operations with floats (input and output)
- if not: perform everything on bytes (intput and output)
2006-06-10 19:56:28 +00:00
Ton Roosendaal
ad3290d3d1 Makefile change for OSX plugins release build:
- the .so files are copied to the installation dir plugin/ directory now
  (other platforms copy it to the .blender dir, which doesn't exist there
  for OSX)
- plugin C files got #defines for return values, was old patch I applied,
  but was never committed
2006-06-10 10:47:21 +00:00
Matt Ebb
67dc5585cb * Added an 'eyedropper' tool in the colour picker. With the colour picker open,
you can click on the 'Sample' button, to sample any colour on the Blender
screen. This is really useful in the compositor, and would probably be good for
sampling footage in any eventual chroma key nodes that may be made, too.

LMB to pick the colour, ESC or RMB to cancel.
2006-06-09 16:01:27 +00:00
Matt Ebb
5b756f7b8a * preview.blend fixes
The preview.blend now shows raytracing/transparency, and also turns on and off
the fake shadow based on the 'shadbuf' setting.

Also included an updated preview.blend file to accomodate this.
2006-06-09 15:55:27 +00:00
Matt Ebb
efca4752d8 * Updated the preview render scene .blend
- Improved lighting and background (also turned off shadows, unnecessary and
a potential slowdown in generating the preview)

- UV unwrapped the sphere and monkey models, so you can actually see something
useful when a texture is mapped to UV

- Added a 'hair' preview option (reused sphere icon will be eventually
forthcoming)
2006-06-07 08:23:35 +00:00
Campbell Barton
b7b99be387 use f.area where possible over python function and use len(mface) over len(mface.v) 2006-06-07 02:10:10 +00:00
Campbell Barton
d435b02930 1 liner, bug that raised an error with textureless materials. 2006-06-06 18:12:29 +00:00
Campbell Barton
be2f840c7d Added the option to import as a group instance (creates own scene) - works the same as OBJ Import. 2006-06-06 09:59:36 +00:00
Campbell Barton
f657c05469 JMS Updates the script, and I did some fixes too. now works with more models. 2006-06-06 02:58:36 +00:00
Campbell Barton
8466ba9a3a Removed wings support, both apps are free and have good obj support. wings import was not maintainded and would not load some files. 2006-06-05 01:36:32 +00:00