Commit Graph

732 Commits

Author SHA1 Message Date
Campbell Barton
30fb777971 py api
bpy.*libBlickSeq*.new() - name is now an optiona arg.
moved some more scripts to bpy.* api.
2007-03-27 14:49:37 +00:00
Campbell Barton
66238eab7c PyAPI
curve - added curve_type() to return the curve type
BPyModule & gen_library - works with text3d now, can also make new text3d through bpy.curves.new
Added Draw.Label() so scripts can draw can using freetype.
widgetwizard - use Draw.Label
2007-03-27 11:37:54 +00:00
Campbell Barton
2b8bed8598 py api
* stopped bpy from importing automaticaly as decieded in the meeting.
* removed Blender.Main, since we agree it will be called bpy, renamed files also.
* updated epydocs from this and last commit.
* updated scripts to use bpy.*, and bugfix's for widgetwizard
2007-03-26 19:44:44 +00:00
Martin Poirier
c78947d2d1 === Export UV Layout ===
[ #6450 ] Save UV Layout: Overflow Error

This error was caused by excentric UV faces being exported (I'm talking things like 3443870976 as UV coord, in a range of 0..1).

Edges with extreme coordinates are now ignored (for TGA only, they are exported to SVG) and a warning is printed (at most once) to the console.

I chose to still export them to SVG because they don't affect the running time of the script while exporting them to TGA is just insanely long.
2007-03-26 15:55:23 +00:00
Campbell Barton
59f0b2fb43 Matthew Chadwick's update to the mesh unfolder, minor tidyups and stopped an error when brightness setting was used with no vertex colors.
made some very minor edits myself.
2007-03-26 08:54:03 +00:00
Campbell Barton
a9d69b332e had 1 char missing 2007-03-25 12:15:06 +00:00
Campbell Barton
5b860cb1e6 added options to this script to
* lightmaps for all selected objects
* add new blank images
* use 1 image for all mesh objects
and some other less important ones.
2007-03-25 10:27:37 +00:00
Stephen Swaney
8aafed560a change script to use the proper form of Scene.GetCurrent(). 2007-03-22 20:08:10 +00:00
Campbell Barton
83a9a84498 BoxPack2D example in epydocs, small cleanup on Geometry.c 2007-03-20 12:07:02 +00:00
Campbell Barton
a51477093b Geometry.c - rewrote my python box-packer algo in C,
packing 2400 rectanges is about 38x faster.

Use the C implimentation in uvcalc_lightmap and uvcalc_smart_project

Blender.c - filename returning None raises errors with existing scripts, just return "" so string functions on the filename dont raise an error.
2007-03-20 07:23:09 +00:00
Campbell Barton
9477a7bc5c added mesh skin to the face key menu and added a python slot here. 2007-03-19 03:22:42 +00:00
Campbell Barton
15de493426 excellent mesh unolder script by Matthew Chadwick
http://celeriac.net/unfolder/
2007-03-18 12:08:51 +00:00
Campbell Barton
5d234230bf apply the 3ds matrix to the mesh, This fixes some 3ds files and breaks others, but it seems to follow the 3ds format. for the files it messes up, just remove transformation. 2007-03-14 06:01:59 +00:00
Campbell Barton
0745133528 removed videoscape support, a format from 1988 that nobody uses anymore. 2007-03-13 10:00:27 +00:00
Campbell Barton
aa33c4fad7 mesh_skin - syntax error stopped ths script from working.
svg2obj.py update from JMS
 - Exec was removed from the collect_ATTRIBUTS function .
 - Other uses was evaluated.
2007-03-05 13:07:31 +00:00
Campbell Barton
8437b84c45 Pose.c - added option not to update IPO's when adding a keyframe to a bone.
bvh_import.py
- delaying IPO updates gives a significant speedup.
- IPO's use linear interpolation now
- Added an option to loop the animation.
- fix for own bug, importing to empties never worked.
2007-03-03 01:29:22 +00:00
Campbell Barton
52f105b32e new script seams from islands, adds seams at the boundries of existing UV islands.
uvcalc_smart_project - needed to import Main
2007-03-01 05:32:06 +00:00
Campbell Barton
d53570e44c quake map exporter, supports lamps, cubes as brushes, complex meshes face per brush, nurbs surfaces as a patch
texture mapping dosnt work yet.
2007-03-01 02:25:20 +00:00
Campbell Barton
488b317265 fixes to this script pointed out by JMS 2007-02-28 22:49:20 +00:00
Campbell Barton
b7e314c558 plumiferos request,
Simple script to copy the active vertex group, also has the option to only copy the selected faces into the new group.
2007-02-28 03:07:07 +00:00
Campbell Barton
9d7ace2654 x3d_export.py - fix for bug 6120
Sound.c - moved to getseters
2007-02-27 06:39:48 +00:00
Campbell Barton
a3320f209c console.py
* improved autocompleation
* faster dictionary usage

Types.c
* type(scene.getTimeLine()) # old bug, will crash blender
2007-02-26 02:24:04 +00:00
Willian Padovani Germano
bdf75bfbef Scripts:
- Updated ac3d exporter to use first material found in the mesh for loose edges (lines) color. Inspired by bug report from Stewart Andreason. Also made a few updates to very old parts of the code, got rid of two "try/except".

- Updated ac3d importer to be even more forgiving to bad data. Also added option to turn transparency on in the 3D View for models using materials with alpha < 1.0. Added optional support for ac3d's subdiv tag, works by adding a subsurf modifier to the imported model(s) that have this tag, so they appear as intended.
2007-02-22 20:19:58 +00:00
Campbell Barton
9759a373d7 Updating own scripts to use Blender.Main, remove Base files. 2007-02-22 15:48:26 +00:00
Campbell Barton
f71458b904 adding menu slot Armature
adding menu slot ScriptTemplate
new script scripttemplate_mesh_edit is a template for an editmesh script.

The function Text makeCurrent() is a dummy until I can get it working when the script runs from a menu.
2007-02-21 11:17:17 +00:00
Campbell Barton
95ac2acf39 uvcalc_lightmap, UVCalc menu, usefull for using the most texture area when baking lightmaps
object_sel2dupgroup, creates a dupliGroup from a set of selected objects, using the active as the transformation for the dupli-ob. The advantage of using thus script is that objects have this transformation removed.
2007-02-19 10:54:33 +00:00
Chris Want
de9a4bcdf1 Script removed by the request of the author 2007-02-15 22:43:08 +00:00
Ton Roosendaal
806692a41b Part 2 of 2.43 release commit 2007-02-15 21:32:30 +00:00
Simon Clitherow
b5ca98f143 Added windows NSIS installer script to scons. Not pretty, but it works :)
To use:

Make sure NSIS is in your %PATH% and type 'scons nsis'

It doesn't currently compile blender first, so make sure you do a
normal 'scons' before this.
2007-02-15 17:00:22 +00:00
Campbell Barton
14e4d46112 added a reference to the original scripts location to comply with the GPL. 2007-02-15 12:23:26 +00:00
Campbell Barton
3c78f0daec * renamed to 'Consolidate into one image' and improved tooltips
* check for the faces TEX mode as well as the image
* use Scene.objects
* use 2 threads for rendering
2007-02-15 12:13:13 +00:00
Campbell Barton
97cc5db444 Added text noting this is a modified work, to comply with the GPL. 2007-02-15 00:57:58 +00:00
Campbell Barton
594026e70e re-enabled printing text to the console (since its optional)
Also added some descriptive text to the option and renamed "display time" to "Display Update" - since it also redraws in the 3d view.
2007-02-15 00:00:59 +00:00
Campbell Barton
5a3f1675a3 Commiting JMS's Latest KMZ minor changes.
* Redraw the 3d view only when importing. (Not all windows)
* Select all verts at once rather then 1 by 1.
* dont print polygons when importing. (Would be better to use the progress bar for this)
2007-02-14 21:08:58 +00:00
Campbell Barton
c7a8f6cd9d Added GPL Headers to some of my scipts that were missing it. also changed the header of a few others.
Only code change is cookie cut from View now only uses 3d curves to cut.
2007-02-14 01:03:32 +00:00
Campbell Barton
1021949c3a removing this script- has been added back with correct spelling. 2007-02-13 18:34:31 +00:00
Willian Padovani Germano
caa671c2c7 Scripts:
- A few imported .ac models had wrong uv's, as reported by Melchior Franz (thanks). Well known reason: the vertex indices order in new faces is rearranged if the 3rd or 4th vindex is equal to 0, because of how Blender checks for tris/quads.

Fixing with that old trick of adding a vertex at index 0 in mesh.verts, adding 1 to each face vertex index, then removing the extra vertex after the model has been imported.
2007-02-13 17:37:32 +00:00
Willian Padovani Germano
b2ce8ec9c9 Scripts:
- Minor updates to the ac3d importer to support bad files (with more data than reported, this time) and properly handle texture paths with win separators ('\')  and spaces. Again, thanks Melchior Franz for testing and reporting.
2007-02-12 17:24:09 +00:00
Willian Padovani Germano
148b8d8014 Scripts:
- Fixing bug #5950 reported by Stewart Andreason (thanks):
http://projects.blender.org/tracker/?func=detail&atid=125&aid=5950&group_id=9

Importing .ac models created Blender objects with user count equal to 2, instead of 1 (so they couldn't be deleted in Blender), because the script kept a second reference to each created Blender object and so Python didn't deallocate things properly at the end of the script.

Now these extra references are deleted in the script, preventing the problem. But this is surely something to fix in the API itself.
2007-02-10 15:11:11 +00:00
Robert Holcomb
f9ff156800 Fixed extra tab at beginning. Don't know how that got there. 2007-02-09 14:19:14 +00:00
Robert Holcomb
c02a71e211 Fixed missing '#' and tab errors 2007-02-08 19:16:43 +00:00
Stephen Swaney
b61d40c14c added a comment char in front of a comment to fix a syntax error.
added a newline at end of file.
2007-02-08 01:03:21 +00:00
Campbell Barton
bc15d06cfe * own error, importer would never load images.
* moved from NMesh to Mesh
* added more error checking.
* tested with 1660 lightwave models
* faster dictionary usage.

BPyImage - disallowed recursive searching of '/' or a windows drive letter.
2007-02-08 00:27:01 +00:00
Campbell Barton
b3e6a6a9c1 animation_trajectory - was printing deprecation warnings. cleaned up some of its code too.
Mesh - removing UV or Color layers didnt check if the active object was in vpaint of uv mode, removing the last layer could crash blender - now switch to object mode if its the last layer like the UI.
2007-02-07 07:43:10 +00:00
Willian Padovani Germano
0bbe1b393e Scripts:
-Another update to the ac3d importer to handle models with wrong face data. Thanks Melchior Franz for reporting.
2007-02-06 19:40:13 +00:00
Campbell Barton
35e96bc991 added messages to scripts, stopping them from modifying multires meshes.
object_cookie_cutter - can now also use curves to cut holes in a mesh.
2007-02-06 11:16:49 +00:00
Tom Musgrove
461e4786c8 = rvk1 to rvk2 update=
script update from jms
2007-02-05 01:04:05 +00:00
Campbell Barton
42d09a59b9 update to 1.9g of JMS's kml/kmz importer,
with a change only in the menu title to comply with the existing naming convention.
2007-02-03 12:50:01 +00:00
Campbell Barton
f08aab441b used slightly faster text cleaning, fixed benchmark not to include time spent selecting a file. 2007-02-02 14:27:36 +00:00
Campbell Barton
50a7ec114d merges some of jms's updates from kmz_ImportWithMesh.py version 1.9f 2007-02-02 09:14:56 +00:00