Commit Graph

651 Commits

Author SHA1 Message Date
Chris Want
e3ed38be6b For a texture, write out the Image.filename instead of Image.name. 2007-06-18 20:03:23 +00:00
Joshua Leung
9a4c02c51d == PyConstraints - Script Template ==
Here is a script template for the "Script Templates" menu in the Text Editor. It provides you with the necessary functions for a PyConstraint set up, and also includes descriptions on what is required in each function.
2007-06-18 11:36:05 +00:00
Campbell Barton
d1959e51b2 was missing editmode exit in script template 2007-06-10 17:28:21 +00:00
Campbell Barton
22e6e836fa bugfix for [#6818] object_find.py assumes active uv layer is set
was assuming meshes had UVs
2007-06-10 04:10:25 +00:00
Campbell Barton
b0921f3d79 exporting normals wit the "High Quality Normals" option disabled, exported localspace normals.
not too bad since HQNormals were enabled by default.
2007-06-06 04:34:59 +00:00
Campbell Barton
f368b60baf OBJ smooting groups exported enabled for by default for the first smooth group (should have been disabled)
gen_library.c - Own error, hashing did not decref the tuple it created.
Draw.c - callback also missed a decref
2007-06-04 08:15:27 +00:00
Campbell Barton
6057ab05f0 Updated this script not to choke on some blank lines (example file from Lekane)
Also removed the use of list.index() all over the place where the index was known. (saves searching the file and the possibility of duplicates messing it up)
2007-05-31 06:12:09 +00:00
Campbell Barton
7585adc8cc Script from Gerhard for exporting blender to m3g and java source,
see website for examples
http://www.nelson-games.de/bl2m3g/default.html
2007-05-29 21:39:29 +00:00
Campbell Barton
9fec189e7a remove xreadline, some other small updates (testing new svn) 2007-05-29 04:15:45 +00:00
Campbell Barton
288631d215 lamp import was broken. 2007-05-28 17:52:53 +00:00
Martin Poirier
d9e85385fd === Patch ===
[#6666] Updates to UV layout export script

Moving from NMesh API to Mesh
2007-05-27 14:42:17 +00:00
Campbell Barton
deffce3c19 Key.c/h - Removed unneeded functions. and ipo in struct wasnt being used.
Lattice.c - removed warning
Mesh.c - (own error) when running me.update(key="...") didnt update the right keyframe.

mesh_cleanup.py - Bugfix from a report by plumiferos that started uncovering all the memory leaks.
Removing NAN verts didnt work with mesh keyframes.
2007-05-26 12:58:46 +00:00
Campbell Barton
7df1d78a99 renaming to match JMS's names 2007-05-21 16:01:49 +00:00
Campbell Barton
ae5c665abe updated rvk1_torvk2 from JMS and added GPL headers 2007-05-21 15:26:50 +00:00
Joseph Eagar
e176e471f1 =IDProperty Script GPL Update=
ID Property browser script updated to have a GPL license block.
Heh I can't believe I forgot this. :)
2007-05-20 21:40:57 +00:00
Campbell Barton
3efeff7666 adding GPL headers 2007-05-20 17:30:30 +00:00
Campbell Barton
c81fbce399 I added a duplicate script, not realizing "Python Reference" was refering to "Blender Python API"
removign the other one anyway since it would make URL's including subversions and I dont think we want that.
2007-05-20 12:29:19 +00:00
Campbell Barton
02893ff5ae Blenders installs where the scripts dir was not writable could not load the console. This should fix it. 2007-05-20 07:41:21 +00:00
Chris Want
c80b2ef9b1 'Copy Images' option for the .obj exporter would fail.
Changing Material ==> Blender.Material fixed it.
2007-05-16 22:30:20 +00:00
Campbell Barton
5dc3878707 had debugging test enabled. 2007-05-09 07:03:05 +00:00
Campbell Barton
22da7d6829 updates from JMS. scripts assumed new data would be last in the list. 2007-05-06 20:03:18 +00:00
Willian Padovani Germano
e85f145c19 Scripts:
- Scripts config editor was not working due to changes in module BPyRegistry.py.
- AC3D exporter: a little cleanup + small improvements like sorting objects.
2007-05-06 15:47:07 +00:00
Campbell Barton
b2c888545c corrected wrong variabel name 2007-05-06 09:54:17 +00:00
Campbell Barton
32c87c61da many 3ds files would not open in other applications because of the 12 character limit of names and filenames in 3ds files.
fixed this and optimized dictionary access some.
2007-05-06 02:19:43 +00:00
Campbell Barton
66ffd1d207 more epy doc updates
added a constant dict "Blender.Object.IpoKeyTypes" to pass to ob.insertIpoKey(keytype), previously these constants were not documented well and added to Blender.Object directly
2007-05-05 06:09:03 +00:00
Campbell Barton
98d797f156 Update to svg import from JMS
0.5.9d : - 2007/4/5
              -  when a svg file containts several curves they can be imported in
                 separate object.
              -  managment of paths' name when paths are imported as separate curves.
              -  a menu was added to select between separate or joined curves
              -  management of colors

     0.5.9e : - 2007/4/7
              - corrected a scale problem that only appears when one uses beveldepth
              - in separate curve option, name is also given to the curve data
              - added the list of svg's color names (147) and modified the color's method
                to work with.

     0.5.9h : - 2007/5/2
              - script was updated with the modifs by cambo
              - removed all debug statements
              - correction of a zero division error in the calc_arc function.
2007-05-03 00:06:07 +00:00
Campbell Barton
b0852bee2c bug fixed when calculating animation bone offsets 2007-05-02 23:45:09 +00:00
Campbell Barton
98bdbab495 rewrote most of this script.
* Export edges instead of faces
* dont export fgon edges
* export all objects (not just active) including Dupli Objects and static particles
* use PupBlock rather then a gui that uses a window.
* write the file normaly rather then redirecting stdout
2007-05-02 03:33:49 +00:00
Campbell Barton
c24aa10561 Made it so blender has an active render layer for Uv and Vertex color mesh layers.
This means changing the active UV/VCol layers wont change what renders.
needed to adjust the minor version so old files will copy the active layer to the render-uv/vcol layer.

boxpack2d.py - redoen in C now, dont need python version.
2007-05-02 00:01:23 +00:00
Campbell Barton
ab77b4aade uvcalc_smart_project.py - fixed error in rare cases.
xfig_export.py - NMesh to Mesh, minor improvements/cleanup.
unweld.py - fixed error when a vert had no faces, also some small speedups and changes.
2007-05-01 09:40:10 +00:00
Campbell Barton
a61638013e header_filesel - pressing buttons made the file select header title change color.
scripttemplate_object_edit.py - new script template for objects.
2007-05-01 06:57:20 +00:00
Campbell Barton
e81471f91f fix for adding a 0,0,0 dummy vertex, pointed out in [ #6607 ] 2007-05-01 00:30:48 +00:00
Campbell Barton
7d47189518 Patch [ #6623 ] Fixed one error, one typo in mesh_cleanup.py
Also added an option to remove all white vcol layers. this is usefull when loading old blend files where every mesh has vcolor's even if they are all white (because of how texface used to be stored before vcol layers)
2007-04-29 16:00:08 +00:00
Campbell Barton
99135b0674 dont use tface hide or select anymore, since maintaining 2 sets of hide/select data for each face is annoying.
using mface->flag for both.

Also found that the cdDM_drawMappedFaces and cdDM_drawFacesTex_common could get normals mixed up when rendering hidden faces. because hidden/invisible faces used continue without advancing to the next normal.
2007-04-29 13:39:46 +00:00
Campbell Barton
1d181b9108 removed doc_browser.py - since it covers ~half the BPY api, not documenting any of blenders data types.
replaced with a help_bpy_api.py, that opens a web browser at the Blender Python API page.
Camera.c - added a veriable .angle to camera, same as .lens but adjusts the camera angle in degrees (like the D button)
export_fbx.py - use the the camera angle property.
object_cookie_cutter.py - use PointInTriangle2D rather then own function.
buttons_shading.c - added OB: and tooltip to object world mapping.
interface_draw.c - (Simple theme) text buttons looked exactly like normal buttons (more confusing when they had no text), made the text and ID buttons render inset so you can tell them apart.
2007-04-28 17:21:00 +00:00
Campbell Barton
3bd0d2e227 Draw.c - error setting the callback button values when using UIBlock (was not offset)
BPyMesh.py - own dumb error, was using dir as an arg (which is a py keyword)

object_drop.py - new script, the first to use UIBlock, it drops objects into terrain, either a group or the active object. on teh Z axis or view axis.
2007-04-27 23:54:30 +00:00
Campbell Barton
c84d18a679 export_cal3d - exporting all actions (option) wasnt working
export_fbx - blender cameras now work properly (converted lens angle, rotate to the right axis)
	Made meshes, armatures and cameras use the same namespace.
DirectX8Exporter - update from David Teviotdale, change names of exported objects so some DX readers dont fail
xsi_export - Null materials made the export fail (python error).
	This may not be a correct solution since material indicies could be messed up now. I have no way of reading these files.
2007-04-27 17:19:26 +00:00
Campbell Barton
0a9dc31c8b added blender-camera export to fbx
py api was massing shiftX/Y
2007-04-27 00:33:07 +00:00
Campbell Barton
2e134e84ab drawview.c - Passepartout, only do GL alpha when not 1.0 alpha
buttons_editing.c - negative camera lense was possible with (Deg) button enabled
export_cal3d.c - minor changes
object_batch_name_edit.py - check for data and object libdata before renaming.
2007-04-26 19:05:22 +00:00
Campbell Barton
b655d5e817 fixed many errors in Cal3D that didnt show up with the testmodel I was using.
Mostly problems with vertex index, and splitting off new verts.

removing truespace_export.py truespace_import.py, (decieded by letterrip and myself)
both truespace and blender have enough formats in common that we dont need to support this format thats spesific to truespace and not used for 3d data interchange.
2007-04-25 23:51:53 +00:00
Campbell Barton
dae5f38f55 darn, had some debug stuff left in. 2007-04-25 21:19:43 +00:00
Campbell Barton
19be3ff7c1 rewrote vertex/face creation (should be faster now)
* added support for blenders materials
* added support for multiple materials per mesh
* added Multiple UV's per vert, as well as using multiple images (Blenders TEXFace)
2007-04-25 21:17:49 +00:00
Campbell Barton
3f153c25be hiding objects in texture paint mode was buggy - (you couldnt exit texxture paint) - so only hide/show objects in object mode.
removed radiosity support.

According to the author -

"The Radiosity file format is my own personal format. I created it to
learn how meshes and vertex colors were stored. See IO-Examples.zip, the
example *.radio files on my web page."
2007-04-25 14:47:29 +00:00
Campbell Barton
d2fb4afb7c BPyArmature - has a function that gets final pose locations/rotations. the data it returns can be swaped with IPO curve/locations, so exporters can use this to export bones with IK's/constraints.
export_cal3d.py - option to export with baked animation from posebones, added popup UI with some options, fixed object scaling, get the meshes armature if its not selected.
2007-04-25 05:13:03 +00:00
Campbell Barton
77f08ddc12 editface.c & buttons_logic.c & Draw.c & verse_session.c - added missing header
Bone.c - return an empty list rather then None for bone.children bone.getAllChildren()
Draw.c - per button callbacks are now have (event, value) passed
2007-04-24 17:28:40 +00:00
Campbell Barton
1ad4f024c8 had debug oprions enabled for cal3d, small updates to epydoc 2007-04-24 02:09:25 +00:00
Campbell Barton
54b494540b Cal3d exporter
Updated this script to work with the new python API, Mesh from NMesh and lots of other improvements + some bug fixes.
2007-04-24 02:05:40 +00:00
Campbell Barton
60af30ec8a lightwave_import - tested with many more new files, fixed a rare error (probably bad file)
export_fbx - export lamps, (point/spot/sun), Mesh edges, Dupli'Objects and static particles as edges. bug fix in material export and better reuse of some standard text chunks.
fly mode, added acceleration on mouse-wheel and +/- so flicking the mousewheel has more effect and dosnt feel so slugish.
BPySys.py - cleanName, dumb mistake.
2007-04-21 11:23:45 +00:00
Campbell Barton
d76778f0e4 2 new python functions for the NLA.
action.getChannelNames() and action.renameChannel(from, to)

editaction.c - maximum new name length was too short
2007-04-20 23:33:56 +00:00
Campbell Barton
c7b1e5c11d export_fbx.py - support scene start/end frames, fpx, mist settings, better default camera writing.
BPyObject.py - function for getting an objects armature, look at both parent and modifier.
editmesh_add.c and BPyAddMesh.py - check for multires
filesel.c, Append/Link had a bug where files linked in, didnt have the LIB_APPEND_TAG unset, and appending these into a new blend file would link instead.
BKE_library.h, library.c - utility functions for flagging listbases flag_all_listbases_ids and and flag_listbase_ids
2007-04-20 18:48:30 +00:00