Commit Graph

1131 Commits

Author SHA1 Message Date
Matt Ebb
633e3e1323 * Updated the 'Consolidate into one image' script to support alpha 2008-11-05 04:48:08 +00:00
Campbell Barton
688cc11302 added an option for python Draw.UIBlock(func, mouse_exit) so moving the mouse outside the popup wont close it.
Stops FBX Export and OBJ I/O from flickering a lot.
2008-10-22 08:21:43 +00:00
Campbell Barton
4936e09cdf add a way for external scripts to call X3D/VRML importer and deal with unknown node types. 2008-10-21 23:14:40 +00:00
Campbell Barton
1df683a38b more python 2.3 compat, should be the last of it. 2008-10-21 09:08:46 +00:00
Campbell Barton
ff2fcdf34e py 2.3 compat for lightwave_import and wizard_curve2tree 2008-10-21 00:21:02 +00:00
Campbell Barton
fd1dcada60 fix for [#17871] PLY file import: blender seems to loose vertex color information
use Mesh rather then NMesh
2008-10-20 13:36:18 +00:00
Nathan Letwory
3544a4bd36 === Blender Python API ===
* fix two typos in RenderLayer API (renderosiy -> renderosity in two places. Will break .py's saved with render_save_layers.py, just fix passRadiosiy and passRadiosiyXOR)
* add some docs on RenderLayer API
* fix some copy/paste leftover in render_save_layers.py
2008-10-19 21:39:50 +00:00
Campbell Barton
18072f5583 modified OBJ import and export UI's to be less confusing with nicer layout. removed an unneeded workaround in fbx export. 2008-10-19 15:53:22 +00:00
Campbell Barton
e96a5bd05b patch [#17856] Correction on docs for Ipo module. from Lucas Vella (lvella) + some other minor changes. 2008-10-18 13:33:27 +00:00
Campbell Barton
03d5780b76 Added joystick epydocs, only changed incorrect docstrings in SCA_JoystickSensor.cpp
patch [#17857] HotKeys Update by dfelinto - SmoothStroke and Anchored.
	Made own edits, removed videoscape and added curve and armature specials.
2008-10-18 13:23:30 +00:00
Campbell Barton
1be4da60a2 * Fixed eekadoodle problem where faces with a zero index vert in the wrong place would reotate the UVs and VCols incorrectly
* Fixed an error that made IndexedLineSet and IndexedPointSet not load for x3d's
* Added support for opening gzip x3d/wrl files
2008-10-18 09:04:25 +00:00
Campbell Barton
efdbf4b1fc x3d and vrml importer for loading thes files as static scenes. x3d needs a full python install. VRML97 files can be imported without python.
for details on what is supported see
http://wiki.blender.org/index.php/Scripts/Manual/Import/X3D_VRML97#Compatibility
2008-10-17 19:06:24 +00:00
Campbell Barton
58ce460cf7 vrml exporting with images was broken. 2008-10-14 23:43:08 +00:00
Campbell Barton
2ee4feda26 c3d_import needed encoding defined for python 2.5+ to run.
wav file reading minor fix checking array bounds.
2008-10-12 10:39:45 +00:00
Willian Padovani Germano
e5d1c5a176 == Python ==
Bug: [#17734] Loading a python script's help dosn't work

reported by Rian Tut (thanks).

Actual problem: scripts with spaces in their filenames were not supported by the code that registers scripts in menus and runs them. Added support w/o breaking eventual, rare scripts that parse the Bpymenus file. They will still need an update to support filenames with spaces, like done here for these scripts: Scripts Help Browser and Scripts Config Editor.

PS: tested on Linux. Please test on other platforms: just make sure scripts still appear in menus (the File->Export, for example), even after re-registering them (Scripts window -> Scripts Menu -> Update Menus) and that the Scripts Help Browser still works.
2008-10-09 22:28:44 +00:00
Campbell Barton
56295f9688 own error, bvh import would always miss the last frame.
thanks ppClarity for picking up on this.
2008-10-08 17:07:32 +00:00
Remigiusz Fiedler
8b2f089c6e DXF-Exporter update
v1.27 - 2008.10.07 by migius
- exclude Stani's DXF-Library to extern module
- add "hidden mode" substitut: back-faces removal
- add support for mesh ->POLYFACE
- optimized code for "Flat" procedure
- modif FACE class for r12
- add mesh-polygon -> Bezier-curve converter (Yorik's code)
- add support for curves ->POLYLINEs
- add "3d-View to Flat" - geometry projection to XY-plane
2008-10-07 20:34:24 +00:00
Chris Want
de6a9d0194 Use xrange() rather than range() for loop iterations. 2008-10-06 17:11:10 +00:00
Chris Want
d5f647a221 A fix for bug #8814:
http://projects.blender.org/tracker/?func=detail&atid=125&aid=8814&group_id=9

Smarter handling of faces that have a material index that points
to a null material.
2008-10-06 17:06:13 +00:00
Remigiusz Fiedler
d0a8a767a7 DXF-Exporter script - initial commit
Built on "Stanis Python Library for generating dxf drawing":
History:
v1.25 - 2008.09.28 by migius
 - modif FACE class for r12
 - add mesh-polygon -> Bezier-curve converter (Yorik's code)
 - add support for curves ->POLYLINEs
 - add "3d-View to Flat" - geometry projection to XY-plane
v1.24 - 2008.09.27 by migius
 - add start UI with preferences
 - modif POLYLINE class for r12
 - changing output format from r9 to r12(AC1009)
v1.23 - 2008.09.26 by migius
 - add finish message-box
v1.22 - 2008.09.26 by migius
 - add support for curves ->LINEs
 - add support for mesh-edges ->LINEs
v1.21 - 2008.06.04 by migius
 - initial adaptation for Blender
v1.1 (20/6/2005) by www.stani.be/python/sdxf
 - Python library to generate dxf drawings
2008-09-29 14:03:15 +00:00
Joshua Leung
f001e58768 Updates to hotkeys.py with some hotkeys I've added/changed over past few releases (note, this doesn't cover all of them yet) 2008-09-29 00:47:21 +00:00
Remigiusz Fiedler
49f9049eb5 fix header text 2008-09-28 13:51:30 +00:00
Joshua Leung
1206061ed4 Patch #17346: Align bones in edit mode
Submitted by: Lorenzo Pierfederici (lento) 

This patch adds the CTRL-ALT-A hotkey to align bones in armature edit mode.

It works the same way as parenting: selected bones will be aligned with active bone, if only one bone is selected it
will be aligned with its parent (if any)

Thanks!
2008-09-26 08:51:05 +00:00
Campbell Barton
2b6f6698d2 patch [#17683] Fix OBJ import line endings
from Tom Nixon (greysquare)  for fixing [#17681] .OBj import issues
2008-09-25 13:17:56 +00:00
Campbell Barton
872704010e [#8540] Import scripts for MilkShape3D file formats
from Markus Ilmola (glome)

note, UV's will be incorrect in some faces because of eekadoodle problem.
2008-09-23 00:49:44 +00:00
Campbell Barton
224607982a Python api access to obcolor
Option to copy obcolor in the copy menu
Option to select same color in select grouped menu
console.py - mistake in last commit caused a python error
2008-09-20 10:11:42 +00:00
Campbell Barton
4d551c0a0d Text.c
- calling Text_reset within C/Api funcs didnt decref the Py_None Text_reset returned.
 - Text_delete wasnt checking if the input was an int.
 - a number of functions wernt checking if the text was removed.
console.py
 - added clear output
 - command history leaves empty command before wrapping
 - add imports as dummy user input so commands written to a text file will run.
 - faster writing of output to a textblock.
2008-09-20 04:37:10 +00:00
Ton Roosendaal
00ed5a2cc9 Patch #17348 by Roger Wickes
Fix in Bake Constraints script, better naming for new object.
2008-09-19 20:22:54 +00:00
Matt Ebb
f0e0e6b1c9 * Some tweaks to the OBJ importer/exporter after chatting with Campbell
- 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.
2008-09-17 04:07:58 +00:00
Ken Hughes
0859141238 Scripts
-------
Removed empty parenthesis from class definitions, causes a syntax error in 
Python 2.4 (reported by Sanne on IRC, thanks!)
2008-09-10 21:37:22 +00:00
Campbell Barton
ecc5bdb8d7 2 gamelogic templates, one with example functions and comments, another minimal template for those who know the api. 2008-09-10 03:34:08 +00:00
Campbell Barton
c7fe2199a7 object_find, didnt get images from an objects material textures
KX_PythonInit.cpp - own error in recent commit.
2008-09-06 17:04:54 +00:00
Campbell Barton
1bd365e112 find objects by texture name raised a python error 2008-09-06 12:50:22 +00:00
Brecht Van Lommel
cb89decfdc Merge of first part of changes from the apricot branch, especially
the features that are needed to run the game. Compile tested with
scons, make, but not cmake, that seems to have an issue not related
to these changes. The changes include:

* GLSL support in the viewport and game engine, enable in the game
  menu in textured draw mode.
* Synced and merged part of the duplicated blender and gameengine/
  gameplayer drawing code.
* Further refactoring of game engine drawing code, especially mesh
  storage changed a lot.
* Optimizations in game engine armatures to avoid recomputations.
* A python function to get the framerate estimate in game.

* An option take object color into account in materials.
* An option to restrict shadow casters to a lamp's layers.
* Increase from 10 to 18 texture slots for materials, lamps, word.
  An extra texture slot shows up once the last slot is used.

* Memory limit for undo, not enabled by default yet because it
  needs the .B.blend to be changed.
* Multiple undo for image painting.

* An offset for dupligroups, so not all objects in a group have to
  be at the origin.
2008-09-04 20:51:28 +00:00
Campbell Barton
b818b1a164 cleanup mesh materials option was setting incorrect material indicies 2008-09-03 03:24:01 +00:00
Ian Thompson
3bab89cc1c Merge from trunk 16122-16307 2008-08-30 14:32:16 +00:00
Ian Thompson
bccce7e30e Fix for class variable parsing/listing bug. 2008-08-30 11:27:27 +00:00
Ian Thompson
0257f500e7 Fix for text plug-in scripts on 64-bit platforms. 2008-08-26 17:09:17 +00:00
Ian Thompson
e1ceab6ed6 Missed parentheses from except clause, has a whole different meaning. 2008-08-18 14:16:34 +00:00
Ian Thompson
7f30e5fdd2 Better class support with inheritance for text parsing. 2008-08-18 10:01:49 +00:00
Ian Thompson
3a62928777 Fix for numeric var types creating an error. 2008-08-17 10:08:38 +00:00
Ian Thompson
d1d1d2b870 Improvements to the base BPyTextPlugin module:
- Added a centralized function for resolving targets (aaa.bbb.ccc)
 - Added documentation support for locally defined classes and methods
 - The time taken to parse now dictates how long to use the cache before parsing again
 - Other tweaks and comments and support for numeric var types

The text plugin scripts have been updated to make use of these features.
2008-08-15 23:14:22 +00:00
Ian Thompson
bda3e4f8e2 Merge from trunk 16031:16122 2008-08-15 00:00:27 +00:00
Martin Poirier
db42038bcf merging trunk 15964 -> 16116 2008-08-14 21:16:48 +00:00
Ian Thompson
65d0ef3e74 Speed improvements for reading text lines and the option to specify a range for Text.asLines([start[, end]]) Also some tweaks for the plug-in scripts and updates to pydocs. 2008-08-12 15:17:08 +00:00
Campbell Barton
f876930904 fix for [#17365] PLY export script writes comment in invalid way
this is good for 2.47
2008-08-11 03:52:21 +00:00
Ian Thompson
a5d955632f Added sys.path module search to BPyTextPlugin module and fixed IndentationError when parsing. 2008-08-10 17:00:25 +00:00
Ian Thompson
5dad154414 Fixed inconsistencies between the text plugins and them not suggesting when called from the menu. 2008-08-10 16:07:14 +00:00
Ian Thompson
ed972db1a3 Merge from trunk: 15912:16031 2008-08-09 10:12:59 +00:00
Ian Thompson
d42891975b Typing 'from a import b' threw an error if b was not found. Accidentally moved this out of the try block in an earlier tidy-up. 2008-08-08 15:54:04 +00:00
Remigiusz Fiedler
98302f6c7c forgot update ver.number in last commit 2008-08-08 11:40:51 +00:00
Geoffrey Bantle
1d425f8da2 -> Fix for warnings in FLT exporter and Palette Manager
Removed buffer overflow masking warnings from the
FLT exporter and Palette Manager.
2008-08-07 22:31:35 +00:00
Geoffrey Bantle
66d6221899 -> Slight tweak to FLT exporter
FLT files written by the FLT exporter would
reference external files (other FLT files,
texture maps, ect) with standard backslash
seperators on win32. However, many tools
that deal with FLT files expect directory
seperators to always be forward slashes
regardless of platform.
2008-08-07 04:38:35 +00:00
Ian Thompson
6c0f4660ed Various UI drawing and event tweaks to make markers feel more natural and avoid getting in the way. If there is a marker under the cursor, ESC will remove it and others in its group. Otherwise all temporary markers are removed. Tab finds/cycles/removes temp. markers, cycles non-temp. markers (under cursor) and behaves normally in all other cases. 2008-08-06 13:46:44 +00:00
Ian Thompson
799ba2c351 Added a Python interface to the marker system with a few additional functions for modifying text selections in general. Tweaked some of the events and drawing code and added a template completion script along the lines of gedit's snippets. 2008-08-05 23:23:31 +00:00
Martin Poirier
e238066525 Merging with trunk
15568 - 15963
2008-08-05 02:27:09 +00:00
Campbell Barton
07bc1e56fe own bug in weightpaint cleaning, wasnt removing as many groups from verts as it should be. 2008-08-04 23:20:12 +00:00
Remigiusz Fiedler
ac7aef6b3d DXF-importer script. Works well with 2.46winXP
Please commit to 2.47 branch
patch history:
 v1.12 - 2008.08.03
 c2 warningfix: relocating of globals: layersmap, oblist 
 c2 modif UI: buttons newScene+targetLayer moved to start panel
 v1.12 - 2008.07.04
 c1 added control Curve's OrderU parameter
 c1 modif UI: preset buttons X-2D-3D moved to start panel
 b6 added handling exception of not registered LAYERs (Hammer-HL-editor DXF output)
 b5 rebuild UI: global preset 2D for Curve-Import
 b5 added UI-options: PL-MESH N+N plmesh_flip and normals_out 
 b5 added support for SPLINEs, added control OrderU parameter
 b5 rewrote draw module for NURBS_curve and Bezier_curve
 v1.12 - 2008.06.22
 b4 change versioning system 1.0.12 -> 1.12
 b4 print at start version-info to console
 b3 bugfix: ob.name conflict with existing meshes (different ob.name/mesh.name)
2008-08-03 15:57:09 +00:00
Ian Thompson
ed5002458b Merged 15771:15912 from trunk 2008-08-01 23:39:52 +00:00
Remigiusz Fiedler
91ece746b8 commit by jms:
Rvk1 to rvk2 script python did not work anymore with the softbodie in blender 2.46.  Only one line needs to be removed.
2008-07-28 10:13:56 +00:00
Ian Thompson
6531d859ba TextPlugin update: Converted try-except blocks to use try-catch-else to allow better error tracking. Commented the descriptor classes and improved variable support for basic types (string, list, etc.) 2008-07-26 20:02:10 +00:00
Ian Thompson
07b8c7e887 Updated the textplugin_outliner.py plug-in to use the new Draw.PupTreeMenu and updated this menu to support titles. 2008-07-21 19:11:38 +00:00
Ian Thompson
5435d7c3ea Oops, typo in rev. 15664 caused error 2008-07-21 11:21:49 +00:00
Ian Thompson
fab7270e40 Script template added for text plug-ins 2008-07-21 10:07:03 +00:00
Ian Thompson
6352cd509e BPyTextPlugin now has descriptors for variables, functions and classes (and their variables/functions). Each descriptor also holds the line number of the definition allowing a simple outliner to be written.
Text.setCursorPos(row, col) now pops the text into view if it is in the active window space. The outliner uses this to jump to any definition in a script; it is invoked with Ctrl+T.
2008-07-21 00:38:42 +00:00
Ian Thompson
f042a468fd Merged 15170:15635 from trunk (no conflicts or even merges) 2008-07-18 23:35:34 +00:00
Ian Thompson
123407e0b4 Added a documentation panel with primitive word-wrap functionality. It can be displayed by Text.showDoc(string) in python and has a text-plugin script for function docs which may be invoked with Ctrl+I inside its params list. Eg. type "dir(" <Ctrl+I> 2008-07-18 23:12:19 +00:00
Ian Thompson
b205cf34b4 All parsing is now done in one sweep and cached to allow details to be obtained without re-parsing. A text can be manually parsed with parse_text(text) which also updates the cache. 2008-07-18 11:00:34 +00:00
Ian Thompson
062643eefd Fixed error when scripts were run without a visible Text to work on. 2008-07-16 12:56:23 +00:00
Ian Thompson
cc89221a24 Previously relying on import to run scripts didn't work every time and was not the right way to do it. Also fixed a problem with 'import *' not working and added the sys.modules list to the import suggestion list with a timed update. 2008-07-16 10:33:48 +00:00
Ian Thompson
512eec04aa Made suggestions case-insensitive which also puts _ prefixed items at the bottom. Improvements have also been made to the way the list works, when it should disappear/update/confirm, etc. 2008-07-15 17:03:59 +00:00
Ian Thompson
9037159d7a Text plugin script updates: Better error handling, variable parsing, token caching for repeat parsing of the same document. Fixed joining of multiline statements and context detection. 2008-07-15 12:55:20 +00:00
Ian Thompson
aeb4d0c631 Created a BPy module BPyTextPlugin to centralize functions used across the text plugin scripts. Also created two more scripts to handle imports and member suggestions. 2008-07-15 07:34:46 +00:00
Ian Thompson
dbb61988fd Any script can now register a unique key combination as part of its bpy header. For a supported space type, the user may press this shortcut to invoke the script.
Space types that are to support shortcuts like this should call BPY_menu_do_shortcut(...) from the event queue read method (See winqreadtextspace in drawtext.c for example)
2008-07-15 07:04:31 +00:00
Martin Poirier
84ae0fc000 merge with trunk (15330 -> 15566) 2008-07-14 14:09:36 +00:00
Maxime Curioni
270184e1b2 soc-2008-mxcurioni: merge-repair with trunk rev 15456 2008-07-06 19:53:32 +00:00
Maxime Curioni
eda7cdc81d soc-2008-mxcurioni: merged changes to revision 15441 2008-07-05 13:30:48 +00:00
Campbell Barton
e6e2087e90 Updates from Roger Wickes
[#16494] Animation Bake Constraints update
links cloned children to cloned parents, useful for ik target baking. whitespace, capitalization.

[#15032] C3D Import script cleanup/IK
Changed code to put IK constraints on a user-defined layer, separate from Markers. cleaned up module naming convention.
removed questionable sloc. add revision history. forced the TrackTo constraint to use a valid marker, and not make up
one on its own.
2008-07-05 11:38:16 +00:00
Ian Thompson
fc392040dd Added readline() and reset() for reading lines from a Blender Text Object and resetting the pointer to the beginning of the buffer. readline() will return the '\n' character and return '' when the end of the buffer is reached in accordance with other readline methods. 2008-06-25 21:00:39 +00:00
Ian Thompson
e68834c75b Added UI for suggestions list. Works with arrow-keys and mouse wheel, accept with Enter, reject with Esc or click elsewhere. Mouse selection not yet supported. The script is called from the File->Text Plugins menu.
Tidied python script, the C suggestions functions and fixed some bugs including suggestions not being freed properly.
2008-06-25 13:51:54 +00:00
Ian Thompson
bdc030c664 Text plugin basis with plugin for suggestions/completions. The suggest plugin works for imported global variables, methods, modules and module members. For example typing:
import Blender
from Blender import *
| <- cursor here suggests globals
Blender.Draw.gl| <- cursor here suggests all Draw members starting gl

Currently suggestions are listed in the console when the space is redrawn but will be presented as a menu-style list soon. Also to add are shortcut/activation keys to allow plugins to respond to certain key strokes.
2008-06-24 15:25:25 +00:00
Martin Poirier
488fa13fc0 MERGING TRUNK 2008-06-23 16:37:51 +00:00
Campbell Barton
fcc377e204 [#13635] DirectX8Exporter with vertex colors
patch from Masaru Nemoto (mnemoto) 

Made some modifications to the patch, use reduce() to get total face verts and some speedup for face vcol looping, also don't write vcol alpha since its used by brushes internally and has no useful meaning.
2008-06-23 00:21:49 +00:00
Campbell Barton
484ac5ea1a [#14405] New python Script - Bake Constraints
AGAIN PLEAST USE TABS, lost quite some time with mixed tab/space adjustments alone.
Other then that, patch is very useful ;)

---Text from patch submission --- 
Using a slightly revised BPy_Armature, this script takes any non-armature object type and creates an Action that keys
the object location (by default, for every frame). If it is an Armature, it goes into each bone and keys the locrot
of the bone. You can now edit the armature, but the motions still rotate the bones. This enables the next step, re-targeting,
which changes bone lengths to fit a mesh. High-level, we are working toward:

1. import mocap (bvh or c3d)
2. bake to make an action library (using this script)
3. re-target and use the actions to drive/deform any character mesh (theeth)
2008-06-22 22:46:02 +00:00
Campbell Barton
9035253493 [#14392] C3D Import
c3d importer for motion capture data
This could do with some improvements but for now its acceptable.
- Note, could people please not mix tabs and spaces.


-Text copied from the patch submission-
The c3d_import with 2.46 was able to import a mocap cloud for some c3d files. I have improved it:
Version History:
 0.4: PERIN Released under Blender Artistic Licence
 0.5: WICKES used marker names, fixed 2.45 depricated call
 0.6: WICKES creates armature for each subject
 0.7: WICKES constrains armature to follow the empties (markers). Verified for shake hands s
 0.8: WICKES resolved DEC support issue

see also http://wiki.blender.org/index.php/Tutorials%5CMoCap-Section_3 for how this program gets the mocap data into
Blender and creates an armature, like the BVH script does.

I'd like someone to test and verify, and if accepted, replace the current c3d_import.py

--- See patch url for example files http://projects.blender.org/tracker/index.php?func=detail&aid=14392&group_id=9&atid=127
2008-06-22 21:48:02 +00:00
Martin Poirier
b5bde6d4dc More params for reeb graph visualizer 2008-06-20 18:06:41 +00:00
Chris Want
fd8e873e01 == VRML97 exporter ==
Faulty indentation of a line sometimes caused a bunch of empty lines to
be printed into the TextureCoordinate and texCoodIndex fields
(benign error, just ugly).
2008-06-18 21:16:29 +00:00
Chris Want
4ed60f4575 == VRML97 export ==
Don't export vertex colors if a mesh doesn't have any (even if a
texface has 'shared cols' set).
2008-06-18 19:58:05 +00:00
Chris Want
1c1f81914c == VRML97 export ==
Patch #10569 from Michalis Kamburelis (sorry for the delay).

This patch adds a popup menu that lets the user choose whether
they want to export selected, whether thay wanted to export
compressed, and whether they want to export the file from
blender's "Z up" coordinates to VRML's "Y up".

I'm not too crazy about the caching to disk of these options
via GetRegistry/SetRegistry, but since this seems to occur
in many of the other export scripts I'll leave it as is.
2008-06-18 17:13:33 +00:00
Campbell Barton
1e3bdcf198 bugfix from Markus Ilmola (glome)
patch was in [#8540] Import scripts for MilkShape3D file formats

Some animations were incorrectly imported and this adds support for weights.
2008-06-16 14:08:24 +00:00
Ian Thompson
10d59e7208 Merged from trunk
svn merge -r14988:15170 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2008-06-09 14:04:19 +00:00
Maxime Curioni
07001e708e soc-2008-mxcurioni: merged changes to revision 15163 2008-06-08 20:12:29 +00:00
Remigiusz Fiedler
cc0d730923 import_dxf.py script update: ver. 1.0.12b3-2008.06.05
bugfix: ob.name conflict with existing meshes (different ob.name/mesh.name)
refactor/support for LWPOLYLINEs
2008-06-05 12:31:16 +00:00
Campbell Barton
056f0564c2 bugfix for zero area faces and adding uv layers was not checking if the
UV layer existed alredy.
2008-05-27 15:14:35 +00:00
Campbell Barton
0eb8ea7429 bugfix, edges with no faces raised an error. 2008-05-27 13:32:10 +00:00
Martin Poirier
1345417f27 Reeb Graph importer (for debuging purpose only) 2008-05-27 13:24:38 +00:00
Campbell Barton
be215f74f3 removing this script, should have been removed for 2.46 since the
functionality is avalable in the UV snap menu.
2008-05-27 09:46:35 +00:00
Maxime Curioni
59df5a23b4 soc-2008-mxcurioni: merged changes to revision 14967 2008-05-25 18:28:52 +00:00
Campbell Barton
55f1b6baa7 for for [bf-blender-Bug Tracker][11843] 3DS importer imports broken meshes 2008-05-25 13:48:36 +00:00
Geoffrey Bantle
7b069b9b60 -> FLT import: Zero area N-gon bug fix
FLT importer would throw errors when importing ngons with
zero area. These faces are now ignored
2008-05-24 18:43:02 +00:00
Campbell Barton
459b4ea5be fix for [#12797] FBX Exporter Exports Incorrect Matterial EmissiveFactor and DiffuseFactor
- own error, swapped diffuse and emit factors
2008-05-24 12:22:53 +00:00
Campbell Barton
99f43e0b07 fix for error when all faces are the same area 2008-05-23 08:39:59 +00:00
Remigiusz Fiedler
61fa5f9126 remove module dxfImportObjects.py. It is obsolete since 2.43, then all functions integrated in the main dxf-importer code 2008-05-22 08:29:54 +00:00
Campbell Barton
58e6861aea fix for [#11542] "Add -> Mesh -> Torus" adds corrupt mesh
previous fix only worked in object mode
2008-05-16 13:05:36 +00:00
Campbell Barton
cf66596d32 fix for [#11667] Minor problem with lightmap_uvpack, LC is getting out of control but keeping to annoy theeth 2008-05-15 19:44:34 +00:00
Geoffrey Bantle
ad397fa16b -> FLT import bug (loose vertices)
New faceweld code broke the import of meshes with loose
vertices. Also added exception handling to the importer
and exporter so that UI doesnt quite when errors are encountered.
Instead traceback is printed to stderr and control returns to
the script UI
2008-05-15 19:35:17 +00:00
Geoffrey Bantle
9f7bc14c57 -> FLT Export bugfix
Export of open faces on export was dropping
the last vertex. Also removed recursion from
function in order to make it safe for large polygons.
2008-05-14 19:29:33 +00:00
Campbell Barton
540c0e0795 uvcalc_lightmap would raise an error on meshes with no faces.
auto-threads wasnt working for baking.
2008-05-14 16:40:25 +00:00
Maxime Curioni
c785d7493e soc-2008-mxcurioni: merged changes to revision 14798, compilation works for rendering/ directry. Still needs to figure out how to compile on non-Unix machines. 2008-05-11 20:28:47 +00:00
Campbell Barton
b9c66e88ea added encoding "# coding: utf-8" to the headers of scripts that python would not run with execfile('....'), python would also riase the error, though there is no practicle use
for running these scripts outside blender.

The error looked like this.
SyntaxError: Non-ASCII character '\xe4' in file ./3ds_export.py on line 10, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
2008-05-11 12:41:12 +00:00
Chris Want
5e5dc2e938 Reverting vrml97_export.py to it's state at revision 14751 because:
1) Bug #6692 is actually a feature request. While I do think that
Michalis' patch is a worthy change, we don't have time to test
this at this stage in the release cycle (and svn is supposedly
closed to new features anyways). I'm sorry Michalis, this will
have to wait until after release.

2) I have looked at bug #8814 a while ago, but I have not yet found
a good solution (and perhaps the solution is to *not* export faces 
without materials assigned). I don't have time to assess whether
revision 14774 presents a worthwhile change or not, and I have no
time to test before release. Also I don't like that the 'fix' for
#8814 is mixed with a fix for a previous faulty commit.

3) Again, another commit to a script I maintain without consulting
me first. Not cool!

Chris
2008-05-10 14:05:35 +00:00
Campbell Barton
cc279a3aa0 fix for [#8814] VRML 97 Exporter bug (empty coordIndex [] indexes) Blender V2.45
null materials were not exported, but would also mess up the assignment of materials for any valid materials after the empty slots.
also made a mistake last recently that Michalis Kamburelis pointed out, changing the default orientation incorrectly. this is now set 
back to what it was in Michalis's patch.
2008-05-10 07:58:10 +00:00
Campbell Barton
694dce0e63 render layer saving script assumed scriptsdir existed.
apply def script assumed the mesh had all the objects vertex groups.
2008-05-09 17:13:03 +00:00
Campbell Barton
8f6eda7e5d need to recalc normals for meshes added in object mode 2008-05-09 12:37:26 +00:00
Campbell Barton
9fb7381d2e chris want corrected some of the last commits changes 2008-05-09 06:02:39 +00:00
Campbell Barton
71fbf87304 fix for [#6692] vrml (.wrl) export bug in V2.44 release
patch from Michalis Kamburelis with some minor edits
2008-05-08 20:51:22 +00:00
Maxime Curioni
64e4a3ec9a soc-2008-mxcurioni: merged changes to revision 14747, cosmetic changes for source/blender/freestyle 2008-05-08 19:16:40 +00:00
Remigiusz Fiedler
3faf127707 DXF-importer prepared for ProE files, which are outside of DXF-specification. 2008-05-08 15:58:00 +00:00
Campbell Barton
bda4e3d19f * added support for exporting dupli objects
* option to export modifier applied objects
* option to export quads as tri's
* added back compress option (will default to enabled if you use .x3dz as the extension)
2008-05-07 15:38:40 +00:00
Campbell Barton
4255f3c7ab made python add mesh module respect blenders user settings for editmode and view align.
added sys.cleanpath() was a patch in the tracker but blender's internal path cleaning is now more general and can be used from 
python.
2008-05-06 17:54:55 +00:00
Maxime Curioni
ec90691384 merge to 14689, Freestyle library changes, SConscript start 2008-05-05 16:56:44 +00:00
Campbell Barton
caa7566ee2 wizard_curve2tree was opening FBX wiki docs. leaf dupliface object was being offset each time the script ran. 2008-05-02 12:27:05 +00:00
Campbell Barton
da509d33c7 used fixed width font, set the command history to ignore dupes when pressing up/down 2008-05-02 10:33:32 +00:00
Campbell Barton
5fef83b0ce fix for bugs
[bf-blender-Bug Tracker][6693] x3d export bug in V2.44 release
[bf-blender-Bug Tracker][7773] .x3d exporter problems (moving meshes away)
Updated how objects are transformed, and use Mesh rather then NMesh.
also removed vertex color saving since it was really slow and vcolors are stored per face in blender.
2008-04-30 22:30:52 +00:00
Maxime Curioni
f12cf0e250 Merged changes from trunk to soc-2008-mxcurioni, to revision 14603 2008-04-28 19:21:51 +00:00
Campbell Barton
34c1699e7e fix for [#9649] svg2obj.py needs a patch,
slight change to the fix suggested, the svg imported was assuming that
"fill:" and "#" being in a string meant there was "fill:#", but the # could be used for other properties.
2008-04-28 19:13:38 +00:00
Campbell Barton
c6554898cc fix for [#9651] raw_export.py tooltip outdated?
own error, bpath looper was trying to free NULL pointer,
added fromOrig to python mtex api
made FromOrig and FromDupli tooltips be understandable
2008-04-28 16:09:17 +00:00
Campbell Barton
4f49a3b906 added ipo script template from blenderartists forTe, made scripts refresh on load factory settings and replaced elysiun with blenderartist.org in headers 2008-04-23 14:04:05 +00:00
Campbell Barton
fa27b5bcc7 Script templates, metaball creation script from forTe, and camera script from macouno 2008-04-22 15:37:54 +00:00
Campbell Barton
8ac1330b74 Patch from Mario Lapin, fixes [#7394] 3ds File Import is broken 2008-04-20 19:27:48 +00:00
Tom Musgrove
9629d8e561 The mdd exporter was skipping the first frame, fix from bill nieuwendorp (slow67) 2008-04-20 16:18:43 +00:00
Campbell Barton
0441b5354d [#6932] Cal3D Exporter Distort Vertex
Removing cal3d importer, since the soya3d maintain their own and I could not fix a bug in weird bone exporting.
2008-04-19 17:38:40 +00:00
Campbell Barton
92f15c7c0c applied patch from Boris van Schooten, [#8148] Animation bugfix for md2_export script
made some other small fixes while testing. (divide by zero errors)
2008-04-18 23:04:54 +00:00
Campbell Barton
9a19ab21b5 milkshape3d model importer, can import a textured model with materials and animation 2008-04-17 20:15:37 +00:00
Campbell Barton
3175ecbcc0 Mot importer from ZanQdo 2008-04-17 08:43:22 +00:00
Campbell Barton
3a9624fd77 ZanQdo fixed exporting of mot files 2008-04-16 20:03:59 +00:00
Campbell Barton
235f793f28 Made aspx/y into floats so we can render precise regions (for apricot terrain baking) 2008-04-09 15:46:26 +00:00
Geoffrey Bantle
b96b7ab83d -> Fix for last commit on FLT exporter
Forgot to change some dictionary keys in source which
would break export. Fixed
2008-04-08 19:35:53 +00:00
Martin Poirier
79ed118fd4 Potential fix for [#8113] Blender.Registry segfault when no permission to write
This converts exceptions in Warning in selected points of the registry module.

While I couldn't reproduce the segfault ( I received the Py error as expected), this isn't a bad idea anyway, since the BPy C counterpart was discarding the error anyway, making it a warning is a bit more inline with its meaning.

The exception is not preventable nor fixable from a script's point of view, so better to silence it and print a warning to the console instead.
2008-04-07 20:56:45 +00:00
Campbell Barton
711306c2ba added a help link to wiki docs for curve2tree, fixed some bugs in flt_toolbar 2008-04-06 17:11:14 +00:00
Campbell Barton
0eb018919a fix for wrong rotation between branch joins 2008-04-05 10:55:18 +00:00
Campbell Barton
8fdfd4cc4c PyAPI - setting a buttons string value crashed. suspect this is a 64bit problem since replacing the string length of int, with Py_ssize_t or long prevented the crash. worked around the problem by removing the PyString_AsStringAndSize command.
wizard_curve2tree - removing id properties didnt work. exit button used a callback it didnt need to.
2008-04-04 23:12:20 +00:00
Campbell Barton
8960f53676 some fixes for python baking function
needed to add a small value to the baking distance for it to include faces of that distance (maybe should make this happen from the user interface too)
2008-03-29 14:50:05 +00:00
Geoffrey Bantle
0010f33bdb -> FLT I/O: UI now undo safe
Both the FLT importer and exporter now store and retrieve
their settings from the blender python registry making
them safe for use with global undo.
2008-03-28 23:06:00 +00:00
Geoffrey Bantle
5fa49b5947 -> FLT I/O: LOD hiding on import
LODS were not getting hidden correctly on import.
Fixed now.
2008-03-28 21:04:27 +00:00
Geoffrey Bantle
b766441658 -> FLT I/O: Hierarchy order fixed on export
Hierarchy was getting reversed on import/export cycle
for FLT files. Fixed now.
2008-03-28 19:45:07 +00:00
Geoffrey Bantle
d32ec4297d -> Double Sided Faces fix for FLT import
Faces marked as double sided in FLT file were
not getting the proper face flags on import to blender.
Fixed.
2008-03-28 00:30:46 +00:00
Geoffrey Bantle
812af46d41 -> Double Sided Faces fix for FLT import
Faces marked as double sided in FLT file were
not getting the proper face flags on import to blender.
Fixed.
2008-03-28 00:26:48 +00:00
Geoffrey Bantle
3b36c10702 -> Extension Node attribute support for FLT I/O
Extension node attributes are now read and stored as ID
props for the following Node types:

-Object Nodes
-Group Nodes
-LOD Nodes
-DOF Nodes
-Inline Light Point Nodes


The extension data is written back out on export.

Note that this commit only adds support for attribute extensions.
Completely new node types via the extension record are still
unsupported.
2008-03-28 00:08:41 +00:00
Campbell Barton
e7651c53c3 baking normals could crash in rare cases because the intersection data wasn't copied when the lambda was bigger then the previous or initialized.
python baking script had a simple error.
2008-03-27 16:28:21 +00:00
Geoffrey Bantle
d94038342c -> Slight fix for Face Weld code in FLT importer
Slight fix for welding of faces that only share one vertex
2008-03-26 16:45:18 +00:00
Geoffrey Bantle
b46bad83bf -> New face weld code for FLT importer
Replaced the use of remove doubles with some new custom 'face welding'
code that wil clean up meshes on import.This will not remove any faces
or do any edge collapse and so is a more suitable method of cleaning
up imported meshes. This same code could potentially be of use when
importing other formats as well (such as DXF...)
2008-03-26 15:59:56 +00:00
Joshua Leung
fa2d6c195e Bugfix #8710:
Typo fix in PyConstraint template
2008-03-23 02:28:24 +00:00
Geoffrey Bantle
895e871d6b -> Color Fixing tool in FLT toolbar
A new tool for for fixing colors on meshes imported from other files with
conflicting color palettes has been added to the FLT toolbar script. This
will find the closest match for all the colors in the faces of selected
meshes and update their baked vertex color representation.

Also added a small tweak to the 'update all' tool which will fix black faces
2008-03-19 21:14:49 +00:00
Geoffrey Bantle
0899bccef5 -> Path handling fix for External references in FLT import
FLT importer had problems with external references that used
relative paths. Fixed.
2008-03-19 19:23:42 +00:00
Geoffrey Bantle
7015700e99 -> FLT importer hierarchy transform bugs
Several transform bugs in the flt importer have been fixed. This included
parent/child relationships and matrices not importing correctly along with
some problems with the import scale option.
2008-03-18 23:16:47 +00:00
Geoffrey Bantle
34c4ac219c -> FLT palette alpha bug
Default FLT palette had all colors with an alpha of zero
which caused problems with some versions of OpenSceneGraph.
2008-03-18 22:55:40 +00:00
Campbell Barton
7287bea1d9 wasnt returning the images in python bake api 2008-03-13 18:34:23 +00:00
Stephen Swaney
4247984df3 French text was breaking python interpreters.
Add character encoding to file like this:
# -*- coding: latin-1 -*-

Thanks to eago for the bug report.
2008-03-13 03:32:23 +00:00
Campbell Barton
8b63333f8c image render to billboard was rotating UV's incorrectly, also make use of texface alpha rather then making many materials with textures. 2008-03-12 10:00:52 +00:00
Campbell Barton
d9da14d8a7 fix for uninitialized variables in uv stretch drawing,
[#8428] 'Editmesh_active' theme colour not accessible via Python
bugfix problem where saving a theme would raise and error when ~/.blender didnt exist.
bugfix for file selector staying open (introduced with own undo resistant scripts)
2008-03-09 07:35:12 +00:00
Geoffrey Bantle
7292fa5ca6 -> DOF from active tool
Creates (or modifies) a DOF node based upon the active object.
Requires two selected objects, the non-active one will get its
DOF coordinate system from the active selected object. This assumes
that 1 Blender unit == 10 meters
2008-03-07 07:23:55 +00:00
Geoffrey Bantle
5ea3956e4e -> Light points vert normal bug and DOF fixes
If light points are not given a unit normal they will
not show up correctly in some applications. Further DOF
nodes were not being exported correctly.
2008-03-07 02:40:12 +00:00
Geoffrey Bantle
80354af6fa -> Short names fix
Short names (less than 8 characters) were not getting exported
correctly for blender objects with no FLT props attached
2008-03-05 01:31:00 +00:00
Campbell Barton
62bd1b85e6 left in prints 2008-02-27 23:11:04 +00:00
Campbell Barton
345866b61e Fix for [#8382] UV unwrap & export puts seams on all edges.
Maya uses OBJ's UV's to generate seams, some people complained that models imported from blender didnt work well in maya.
It was faster to write every faces UV (without doing a remove doubles), but sharing UV coords makes smaller files and might also be more efficient in other applications.
2008-02-27 23:10:25 +00:00
Geoffrey Bantle
d41cbadf7d -> Minification filter type for FLT attrib files
-Changed the minification filter type from Bilinear to
mipmap-trilinear
2008-02-27 11:52:19 +00:00
Tom Musgrove
40934ef6df This is an update of the french translation, patch from
Erwan Jacq (eon) - .mo to follow

This is also a partial fix of bug 8272 X3D export issues
the rest of the bug might be already fixed in CVS
2008-02-23 20:08:18 +00:00
Campbell Barton
0e935e397b * Displacement baking wasnt working with negative distances.
* Added Normalize option for diplacement so everything in the 'Dist' range is mapped 0-1
* Increased the maximum Dist and Bias to1000.0 (was 10.0)
* Added python utility function in BPyRender.py - bakeToPlane(...), to automate heightmap, normalmap generation for Crystalspace.
2008-02-22 14:27:46 +00:00
Remigiusz Fiedler
98b4fa74cb ver.1.0.12a9 , minor bugfix 2008-02-10 10:26:29 +00:00
Campbell Barton
746522a0ad Standalone reads a list of scene, start frame, end frame from blend files without having to load them in blender.
Scenes must be tagged to render, (old render daemon button) but selecting scenes in the data browser (shoft+f4) sets this also.

Using this script to generate jobs for the renderfarm much faster then loading blender.
2008-01-30 16:16:38 +00:00
Campbell Barton
0f157c6304 tooltips for some dual toggle buttons as well as tooltips from wim van hoydonck ([#8166] [python-scripts] fix for tooltips of torus primitive + newline) 2008-01-28 10:56:42 +00:00
Campbell Barton
a1f3af3d59 script to save renderlayers to a file so you can load them in other blend's - useful when applying settings in a pipeline (andy tells me ;) ) 2008-01-28 00:05:15 +00:00
Campbell Barton
a4c8a5b670 sorry about this, 3rd commit to fix this small error. 2008-01-25 20:44:36 +00:00
Campbell Barton
ad7a03ef84 minor fix 2008-01-24 22:43:42 +00:00
Campbell Barton
04512c7306 fix for lightwave object loader 2008-01-24 20:31:11 +00:00
Campbell Barton
9f441976a2 outliner messed up shift+clicking on linked objects - would display their library path rather then selecting them. displaying library path could be useful but should add elsewhere. 2008-01-22 00:56:35 +00:00
Campbell Barton
38255fcc6f Script to set timeoffset of all selected objects using the animated path of an active object.
This means you can have 100's of objects animations run by animating an empty over them, (needs docs to explain really) ... Easy to setup and time a Mexican wave for instance ;)
2008-01-22 00:53:10 +00:00
Campbell Barton
e3b202d0b9 minor changes to address bugs
[#8109] Incorrect header information in exported X3D Files
[#8110] Illegal characters in exported X3D files
2008-01-19 21:52:09 +00:00
Remigiusz Fiedler
3df9587b40 update with many improvements:
v1.0.12: 2008.01.17 by migius
 a8 lately used INI-dir/filename persistently stored in Registry
 a8 lately used DXF-dir/filename persistently stored in Registry
 a7 fix missing layersmap{} for dxf-files without "section:layer"
 a6 added support for XREF external referenced BLOCKs
 a6 check for bug in AutoCAD2002:DXFr12export: ELLIPSE->POLYLINE_ARC fault angles
 a6 support VIEWs and VPORTs as cameras: ortho and perspective mode
 a6 save resources through ignoring unused BLOCKs (not-inserted or on frozen/blocked layers)
 a6 added try_finally: f.close() for all IO-files
 a6 added handling for TypeError raise
 a5 bugfix f_getOCS for (0,0,z!=1.0) (ellipse in Kai's dxf)
 a4 added to analyzeTool: report about VIEWs, VPORTs, unused/xref BLOCKs
 a4 bugfix: individual support for 2D/3DPOLYLINE/POLYMESH
 a4 added to UI: (*wip)BLOCK-(F): name filtering for BLOCKs
 a4 added to UI: BLOCK-(n): filter anoname/hatch BLOCKs *X...
 a2 g_scale_as is no more GUI_A-variable
 a2 bugfix "material": negative sign color_index
 a2 added support for BLOCKs defined with origin !=(0,0,0)
 a1 added 'global.reLocation-vector' option

 v1.0.11: 2007.11.24 by migius
 c8 added 'curve_resolution_U' option 
 c8 added context_sensitivity for some UI-buttons
 c8 bugfix ELLIPSE rotation, added closed_variant and caps
 c7 rebuild UI: new layout, grouping and meta-buttons
 c6 rewritten support for ELLIPSE mesh & curve representation
 c6 restore selector-buttons for DXF-drawTypes: LINE & Co
 c6 change header of INI/INF-files: # at begin
 c6 apply scale(1,1,1) after glob.Scale for all mesh objects, not for curve objects.
 c5 fixing 'material_on' option
2008-01-18 17:03:43 +00:00
Campbell Barton
46f93f882d update to m3g exporter by Gerhard Völkl 2008-01-18 10:46:37 +00:00
Joshua Leung
eebab74464 Missed a few lines in import_mdd.py 2008-01-14 05:58:38 +00:00
Joshua Leung
da4c1cd8d3 MDD Importer/Exporter - Bugfixes:
* MDD export failed when using a particle-instance modifier due to the use of different ways of retrieving a mesh to count it's vertices. 
* MDD importer now shows up in menu of importers again
2008-01-14 05:55:24 +00:00
Geoffrey Bantle
e1a45c73b6 -> Fix for select Xref tool
Select Xref tool was broken. Should work now.
2008-01-11 14:25:01 +00:00
Geoffrey Bantle
a7184e9afd -> Fix for billboard faces
Faces with billboard render (axis with alpha) were not being preserved on import/export. Fixed
2008-01-09 19:51:22 +00:00
Campbell Barton
9b89abaa8b BLI_makestringcode dosnt need the first value to be a copy of G.sce since its a "const char"
Removed own script release/scripts/image_find_paths.py since last commit replaced its functionality.
2007-12-20 10:38:01 +00:00
Campbell Barton
b3ff38cacd Problem with OBJ import found by Mark Ivey - would not import an obj if all verts were int values. 2007-12-19 07:44:37 +00:00
Campbell Barton
f4e2005933 UV texture blending was being used when materials were disabled. 2007-12-07 11:56:51 +00:00
Campbell Barton
e756b1cc7d - fix for [#7327] Problem/issue with .PLY export,
editmode was not exited, and vertex normals would not write at all! (probably own error)

- Edited tooltip for texture DVar (was some user confusion in the studio as to its purpose)

- Set render border is disabled when it has no area - so drawing a box outside the camera disables .
2007-12-05 20:21:25 +00:00
Campbell Barton
141e279d70 wizard_curve2tree.py - bounding twig mesh didnt work if it had some transformation.
buttons_shading.c - premul button was overlapping movie buttons
2007-12-01 22:00:09 +00:00
Campbell Barton
f06872d493 mesh_edges2curves.py - fix for duplicate points
renderwin.c - stamp info in openGL render
2007-12-01 19:19:49 +00:00
Campbell Barton
a4c17c7c88 anim.c, buttons_object.c, readfile.c, BKE_blender.h - dupliFace scale option, needed for leaves.
modifier.c, BKE_modifier.h - flag for modifiers to say they use pointcache, also new func modifiers_usesPointCache
renamed //pointcache to //blendcache_blendfilename so blendfiles in the same dir dont conflict, and other to show this dir isnt limited to pointcache only (nodes way want to use this)
wizard_curve2tree.py - better defaults for pretty tree's
2007-11-30 10:38:59 +00:00
Campbell Barton
6649ba74d6 - better weighting for fill twig placement
- curve direction isnt used anymore - just make the small end the last.
2007-11-29 14:41:33 +00:00
Geoffrey Bantle
2d38926f13 -> Fix for FLT export
Silly mistake on FLT export meant that when copying textures no check was done
to see if the file being copied existed or not. Fixed
2007-11-28 19:06:00 +00:00
Campbell Barton
d6ce9e4abe curve re-meshing had some errors when making joins, now collapse surrounding overlapping segments when adding joins to allow room for the join, joint rotation was also wrong between branches. 2007-11-28 15:26:02 +00:00
Campbell Barton
07a2f7013a fixed bug that only happened when a curve had 2 points in the same place 2007-11-27 22:09:42 +00:00
Campbell Barton
ee40a913a5 minor errors fixed 2007-11-27 21:19:58 +00:00
Campbell Barton
044b78c83b new function object_is_libdata - checks ob->id.lib but also accounts for proxy's.
Object panels were using object_data_is_libdata, which meant linked obdata could not have object settings changed.

curve2tree 
- option to face leaves up or down
- random pitch and roll options
- place 2 leaves on a point for denser leaves
- random seed entry so you can get reproducible results
2007-11-27 19:23:26 +00:00
Campbell Barton
38e3abae83 reference leaf object rather then group (which wasnt working and only used the last object). for dupli - leaves 2007-11-27 13:08:20 +00:00
Campbell Barton
2a743951fc * Improved Fill Twigs, they now join to make a continues skin like other branches.
* Improved dupli-leaf placement - (should be good enough to use for final renders)
2007-11-27 11:57:18 +00:00
Campbell Barton
a29f082728 new twig type that gives more even results - "Fill Twigs" option 2007-11-25 20:49:38 +00:00
Campbell Barton
b21df550d3 ==Python API==
made it possible to remove curves from python with "del curve[i]"
mesh_edges2curves.py - remove unused function.
2007-11-22 22:07:41 +00:00
Campbell Barton
a038363124 mesh_wire.py - gave an error with no faces,
wizard_curve2tree.py - didnt work with no bevel object
Curve.py - ext1, ext2 didnt reference the interface names.
2007-11-22 16:30:14 +00:00
Campbell Barton
0d6d89a27b wizard_curve2tree - mistake while debugging.
buttons_shading.c - short names for world settings were not needed.
2007-11-22 14:10:51 +00:00
Geoffrey Bantle
78ea4f3564 -> Updated FLT scripts
Blender FLT I/O scripts have been updated to have more features.In addition
several utility scripts/applets have been added to aid in working with FLT 
databases within Blender.

Documentation can be found here:

http://wiki.blender.org/index.php/Scripts/Manual/Import/openflight_flt
http://wiki.blender.org/index.php/Scripts/Manual/Export/openflight_flt
http://wiki.blender.org/index.php/Scripts/Manual/FLTools
2007-11-22 01:43:24 +00:00
Campbell Barton
413c24c746 initial support for leaves as duplifaces as well as some a bugfix for loading settings 2007-11-21 16:07:47 +00:00
Campbell Barton
307ad085fc wizard_curve2tree.py - always use active object (local view was messing up the context)
Mesh.c - mesh.faces.extend([..., smooth=True]) - smooth keyword argument, in a number of places was looping through all faces just to smooth them.
mesh_skin.py - smooth by default
2007-11-21 11:53:30 +00:00
Campbell Barton
3a8328784e made twig taper a float rather then a bool, added type conversion when loading settings. 2007-11-21 09:46:08 +00:00
Campbell Barton
aaba5d1a18 Update v1.0.11 from Migius
You can find the update v1.0.11 on http://wiki.blender.org/index.php/Scripts/Manual/Import/DXF-3D

changelog:
c4 added "analyse DXF-file" UI-option: print LAYER/BLOCK-dependences into a textfile
c3 human-formating of data in INI-Files
c2 added "caps" for closed Bezier-curves
c2 added "set elevation" UI-option
c1 rewrite POLYLINE2d-arc-segments Bezier-interpreter
b9 many bugs fixed
b9 rewrite POLYLINE2d-arc-segments trimming (clean-trim)
b8 added "import from frozen layers" UI-option
b8 added "import from paper space" UI-option
b8 support Bezier curves for LINEs incl.thickness(0.0-10.0)
b8 added meshSmooth_on for circle/arc/polyline
b8 added vertexGroups for circle/arc
b7 added width_force for ARCs/CIRCLEs = "thin_box" option
b3 cleanup code, rename f_drawArc/Bulg->f_calcArc/Bulg
b2 fixing material assignment by LAYER+COLOR
b1 fixing Bezier curves representation of POLYLINEs-arc-segments
b0 added global_scale_presets: "yard/feet/inch to meter"
2007-11-19 17:39:52 +00:00
Campbell Barton
80357d7f28 initial leaf support (need to use in production, at the moment its really simple)
Option to generate variation's - This modifies the original shape to make a variation on the original.
2007-11-19 14:00:48 +00:00
Campbell Barton
0b0542c785 typo in Text3d, weightpaint_invert wasnt working properly 2007-11-19 10:49:12 +00:00
Campbell Barton
cf60bf576b simple weight invert script for the weightpaint menu, removed a print from weightpaint_average.py 2007-11-19 10:17:55 +00:00
Campbell Barton
e0fb0a1783 wizard_curve2tree - more twig options
- gravity (like particles)
- follow parent (like gravity but use the parent normal)
- limit the number of twigs on each branch
- limit the radius that a twig may be placed on a branch
- trim the base of branches in a way that better deals with small branches on large branches
2007-11-17 01:17:23 +00:00
Campbell Barton
ad700ba24f * wizard_curve2tree.py - Automatic alpha blended, textured image joins using material textures and UV layers. Also added some detail options and made it easier to get low poly results.
* Mesh.c bugfix, "mesh.verts = None" didn't set the mesh->mselect pointer to NULL, wizard_curve2tree so would crash when in editmode.
* Texture.py - MTex.uvlayer doc was missing
* buttons_shading.c - Stencil tooltip was stupid.
2007-11-16 14:47:31 +00:00
Campbell Barton
07110e83fd - bounding meshes with loc/size/rot didnt work.
- better sorting of twigs (for recursive twigs)
- An option to lengthen child twigs.
2007-11-13 21:32:53 +00:00
Campbell Barton
1ece8b81cb - new UV scaling option works better for big/small branches.
- Can constrain twigs to only grow in a bounding mesh. And an option to prune twigs that grow out.
2007-11-13 16:50:43 +00:00
Campbell Barton
924f7e5146 Tree Wizard.
'Twigs' - branch's added to the existing, made from blending existing branches into new ones.

Some user settings for scale, orientation randomness, number of twigs and recursive twigs.
2007-11-12 23:19:33 +00:00
Campbell Barton
fe6d470dba added options to weightpaint normalize script
- armature only - so when using weight groups for other things only armature groups are affected,
- Active only - so you can normalize all weight groups
2007-11-12 20:02:36 +00:00
Campbell Barton
828eba4842 Loop in parents cant happen anymore, better dealing with segments with more then 4 children. print timing stats. 2007-11-11 21:14:44 +00:00
Campbell Barton
3a90b35db8 Undoing 'undo' fix 12365, it didn't work the same on mac's, Ton would like to fix the bug himself.
Tree From Curve,
- report error when nurbs or poly curves are used.
- don't throw errors when >4 branch's per segment are used. also try deal with this better. though no nice solution exists.
- default speed is 10x slower then before.
2007-11-11 15:18:53 +00:00
Campbell Barton
b7d3a8786a Rewrote the part that converted blenders curves into branches,
Was converting into a mesh and then doing location checks, to figure out what the radius should be and then interpolating. this was the slowest part of the script and it made a mesh every time.

Now use blenders bezier interpolation function and calculate points like blender does.

fixed a driver syntax error for the Z axis (typo)
2007-11-10 20:00:15 +00:00
Campbell Barton
250d473180 better segment collapsing (check for radius/angle difference)
remove vert groups from existing mesh when its being reused
2007-11-09 23:06:31 +00:00
Campbell Barton
57edc9f480 branch cap ends, UV scale options, Automatic update option added. as well as some bugs fixed. 2007-11-09 16:51:24 +00:00
Campbell Barton
42a2b662d3 saving and loading of settings per tree, also added a way to get unique animation using object locations in drivers 2007-11-09 12:19:10 +00:00
Campbell Barton
ddf2336084 curve2tree - animation settings - speed and magnitude
Python api - texture.evaluate can now accept tuples of numbers as well as vectors
2007-11-09 10:29:19 +00:00
Campbell Barton
95661081f9 tree branch bones can now animate using drivers that reference textures, so animation can be controlled from clouds, noise settings after being created. still need to add user preferences for animation speed and magnitude. 2007-11-09 01:35:00 +00:00
Campbell Barton
8e377cfe75 Branch's now have weights assigned to the mesh and an armature modifier applied so the bones effect the tree. 2007-11-09 00:05:15 +00:00
Campbell Barton
0da704af0d automatic armature generation follows branch's 2007-11-08 22:13:40 +00:00
Campbell Barton
3c3256c6f1 bug fix with trimming intersecting branches, added setting for branch joint smoothing. some speedups 2007-11-08 20:25:56 +00:00
Campbell Barton
4482f3b2e8 user interface added for 'Tree from curves' tool.
renamed Filter to Blur to Filter for #define as well
2007-11-08 15:41:11 +00:00
Campbell Barton
3275821759 (work in progress commit) - tree wizard, makes a subsurfed skin from curves. also adds UV's (and soon bones)
needs a user interface.
2007-11-07 21:39:23 +00:00
Campbell Barton
f25629932a ==Unfolder python script update==
Patch from Matthew Chadwick (celeriac) [#7603] fix for bug#7520
Replaced overlap detection code with code using Geometry.LineIntersect2D
2007-10-24 09:02:58 +00:00
Joshua Leung
6422a740c2 == Constraints System - Recode 2 ==
Once again, I've recoded the constraints system. This time, the goals were:
* To make it more future-proof by 'modernising' the coding style. The long functions filled with switch statements, have given way to function-pointers with smaller functions for specific purposes.
* To make it support constraints which use multiple targets more readily that it did. In the past, it was assumed that constraints could only have at most one target.

As a result, a lot of code has been shuffled around, and modified. Also, the subversion number has been bumped up.

Known issues:
* PyConstraints, which were the main motivation for supporting multiple-targets, are currently broken. There are some bimport() error that keeps causing problems. I've also temporarily removed the doDriver support, although it may return in another form soon. 
* Constraints BPy-API is currently has a few features which currently don't work yet
* Outliner currently only displays the names of the constraints instead of the fancy subtarget/target/constraint-name display it used to do. What gets displayed here needs further investigation, as the old way was certainly not that great (and is not compatible with the new system too)
2007-10-21 23:00:29 +00:00
Campbell Barton
8bcfafa3d9 changed default nan_definitions.mk to use python 2.5 for linux (ai64 default was py 2.2 which probably wont even compile anymore)
pose.c - left a print here
export obj would ask about file overwriting twice.
2007-10-21 17:38:17 +00:00
Campbell Barton
d7fa5ab168 python console, removed word wrap - was far too slow
when console_autoexec.py wasnt present, the standard blender import wasnt executed.
2007-10-20 19:47:19 +00:00
Campbell Barton
e9c2aa691e updated pyconstraint template from nathan (cessen) which exposed some
bugs with pyconstraints, also added a missing decref from python (wasnt freeing the return value from the settings 
button).
2007-10-15 15:28:09 +00:00
Campbell Barton
1fde6d4570 Made the remaining UV py scripts work with editmesh now.
DrawShadow option didnt check the final derived mesh had CD_MTFACE's can would crash when enabled with mirror modifier.
2007-09-24 09:40:09 +00:00
Campbell Barton
aee06ac0d0 added an active face for the mesh editmode and normal mesh - this is needed because the TFace flag was not always easy to access from editmode.
using the last selected face was almost good enough however when selecting verts and edges the last selected face would become inactive and the space image would flicker about too much.
The active face is used for getting the space image at the moment and keeps scripts that use this flag working also.

This has 2 commands to get and set, so the variable is not accessed directly.

all "UV Calculate" scripts work now

last commit crashed when in solid draw mode, it seems subsurf modifier is ignoring the displayMask since MTFACE is available. just made it do a null check for now.

uvcalc_follow_active_coords.py - should be done inC and put in the snap menu.
2007-09-22 17:54:13 +00:00
Campbell Barton
2f46df39b4 meshes with no faces would raise an eror when setting their .faceUV to true. 2007-09-19 09:15:16 +00:00
Campbell Barton
722fe627bc udates from stable 2007-09-11 10:22:00 +00:00
Campbell Barton
64019f709b update from stable 2007-09-08 12:09:51 +00:00
Campbell Barton
d18d0aaabb fbx update from stable (parent/child hierarchy isnt flattened anymore) 2007-09-08 08:49:56 +00:00
Campbell Barton
40c0b37a2a update from mingus 2007-09-07 23:33:30 +00:00
Campbell Barton
f85cd06873 When Optimize keyframes was enabled, the comma's wernt written in the right place, oddly enough this still loaded in the FBX SDK. 2007-09-07 00:36:56 +00:00
Campbell Barton
9eb46e47fc constant name was wrong. possibly changed between blender versions 2007-09-05 01:02:03 +00:00
Campbell Barton
6c0893947b * dupli-objects were not exporting (animated dipli's and armatures that are dupli's still dont work)
* added support for exporting blenders groups (will export groups that any of the selected objects are apart of)
2007-08-30 17:16:09 +00:00
Campbell Barton
f386120411 sync with stable 2007-08-29 19:53:49 +00:00
Campbell Barton
c96cde42bd Objects can now be animated (camera paths, lamps etc)
However meshes that use an armature cant use object animation.

faster exporting for non modifier applied, armature meshes (transform all verts using wrapped C func)
2007-08-29 09:50:08 +00:00
Campbell Barton
1d43cae37b * added a bindpose (3ds max was complaining)
* export materials emit value
2007-08-29 05:42:39 +00:00
Campbell Barton
99493ef6d9 * added some missing tooltips
* made name string cleaning function allow chars ,.()[]{} in fbx model names
* clamped export lamp intensity to 200
* each mesh only links to the image-textures it uses. (before it linked to ALL textures)
* added support for AllSame mapping, this means when a material or texture only uses one, a single mapping index can be given rather then a big list with the same value in it.
* improved material and texture mapping method
2007-08-29 03:56:22 +00:00