Commit Graph

1801 Commits

Author SHA1 Message Date
feb440c2cd added sequencer paths to bpath iterator, This needed to use get/set filename callbacks internally because the sequencer stores dir/file separately.
This means when moving large projects with many images/videos/sounds is possible with 'File, External Data, Find Missing Files'.
- needed so we can put peach animatic, glrenders & testrenders on the dvd.
also datatoc.c - brecht's fixes from apricot.
2008-04-25 16:09:16 +00:00
b0db68ccb0 == PyNodes ==
Finishing a few needed things before the release: changed ShadeInput vars access from a single getAttribute function to individual methods, one for each var, for faster access (needed, since these are accessed over and over during rendering).

Very repetitive code, so I used a few macros to write it. Compiles w/o warnings here (linux, gcc 4.3.0), please report any problems.

This is just an internal change, the Python API is still the same.
2008-04-23 20:06:25 +00:00
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
65ca9c204c bpy sequencer api can add color strips, changing strip length wasnt re-allocating stripdata which was causing memory free errors, added proxy options, directort read/write and some more flags. 2008-04-21 22:17:49 +00:00
be0b8ccfaa Used GET_INT_FROM_POINTER to get rid of many warnings that only occurred with 64bit os's
Also use Py_ssize_t which we might need to define for older python's
2008-04-17 21:14:55 +00:00
Chris Want
5d0a207ecb Patch from GSR that a) fixes a whole bunch of GPL/BL license
blocks that were previously missed; and b) greatly increase my
ohloh stats!
2008-04-16 22:40:48 +00:00
67e2d05dcd Ipo View Option - Loc View Area - stops using each ipo's view area when changing ipo's. 2008-04-15 14:15:56 +00:00
6b81045bc3 * Made Armature auto name L/R, Top/Bot, Fr/Bk remove existing, known extensions.
* Added fromDupli MTex setting to python api
* Shift+RMB was setting the active face in the UV view.
* Armature scripts menu was broken
2008-04-13 15:14:32 +00:00
36288dabb8 Fix for render scemode in the python api, forgot to commit this file
when i changed it from a short to an int.
2008-04-10 11:34:36 +00:00
235f793f28 Made aspx/y into floats so we can render precise regions (for apricot terrain baking) 2008-04-09 15:46:26 +00:00
Stephen Swaney
d30cc5f2d8 API Doc for new Object attributes trackAxis and upAxis.
contributed by Cedric Paille.  Thanks!

Fix broken indentation in Constraint doc.
2008-04-09 07:27:37 +00:00
Stephen Swaney
77639a5cde Doh! Typo - replace [Y] with [Z]. 2008-04-07 14:16:26 +00:00
7c15baff16 added an optional arg for object.getBoundBox(worldspace) - so you can get localspace boundboxes, this is useful when getting a dipli's boundbox where the objects worldspace matrix has no useful meaning. 2008-04-07 13:16:56 +00:00
66e74e6057 annoyance with python api, Blender.Library.Datablocks should always return an empty list, rather then None when there is no datablocks. 2008-04-07 10:12:21 +00:00
e4d25da698 fix for [#6342] Collada 1.4 import (of perhaps corrupt collada files) leads to a complete crash of Blender 2.43 under Windows XP
NMesh wasnt checking 16max material limit, also made collada import work with the user scripts dir.
2008-04-06 20:13:14 +00:00
Stephen Swaney
6e5984ce39 Python API - read access to Track and Up axis attributes for Object.
Part of Patch 8557.  Contributed by Cedric Paille.  Thanks!

Still waiting for API doc for new attributes.  Finger is poised
over Revert button...
2008-04-05 21:33:06 +00:00
Stephen Swaney
d0004bed8c fix compiler warning: comparison between signed and unsigned 2008-04-05 14:49:41 +00:00
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
4f6493d1a7 Fix for bug #8629: python object.boundingBox was not in worldspace
anymore for meshes due to a bugfix. The python code assumed ob->bb
was in worldspace while it isn't, also meant metaball bounding boxes
were wrong.
2008-04-01 10:15:39 +00:00
009e5d00cb TimeLine PyType was not getting initialized, causing auto-completion in the interactive console to crash. 2008-03-31 14:29:40 +00:00
d9de141077 == bugfix ==
fix for [#6950] Blender crashes when .blog file top line is 160 characters or more
- made sure BLI_convertstringcode doesn't return more than 240 chars 
- went through all callers and fixed places where string passed to BLI_convertstringcode was too short
- TODO: look into increasing sample->name and sound->name too, I prevented crashes, but filename might get shortened.
2008-03-30 16:18:01 +00:00
68f1f2b08d own typo in py api 2008-03-29 15:20:41 +00:00
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
08bc0efecb made editmode only force smooth shading when vcols are present (as joe suggested)
pythons api's image.unpack() was broken
2008-03-27 11:52:58 +00:00
Ken Hughes
2976a38fd9 Python API
----------
Bugfix #8615: NMesh.update() did not check if faces had less than 3 vertices, so would create bogus faces.  

Also discovered in the process that documentation and error message for Mesh.assignVertsToGroup() was wrong.
2008-03-26 17:29:20 +00:00
662c57d63e fix for [bf-blender-Bug Tracker][8739] image selector never exits.
This fix was made to the file selector weren't applied to the image selector.
Made file and image selector use same python api function.
2008-03-25 09:00:00 +00:00
1930a925c8 Removing some compiler warnings.
(Note to who-ever made all the changes referring to r.scemode:
r.scemode is an int, not a short!)
2008-03-21 23:10:23 +00:00
Ken Hughes
3c7308614a Python API
----------
Bugfix #6543: Blender.Library.Load() could segfault if called more than once
with a library of different endian type.  In the process discovered an
invalid memory reference in other another function calling library_append().
Thanks to Brecht for the pointers on tracking this old bug down.
2008-03-20 04:59:59 +00:00
6222b1ca99 saveRenderedImage dosnt work in backgrond mode, so added a warning in the docs and an exception if called. 2008-03-19 10:37:19 +00:00
66374761e1 added a warning in python api abot ipo curves. minor change to curve.c 2008-03-19 09:26:01 +00:00
f47aec78c9 fix for [#7962] anomalous mem usage with pydrivers.py scripts 2008-03-18 14:49:31 +00:00
b10726a2ad patch from Paul Rotering (pryon)
[#7124] knot vector access for SurfNurb
2008-03-18 13:42:38 +00:00
bc7b18131b Running scripts with Blender.Run() would crash when reloading. 2008-03-17 19:58:11 +00:00
aee5cb7762 - [#8589] Scripts which use file selector not working correctly
Fix for another bug I introduced with persistent python windows.
also removed unused var.
2008-03-17 18:01:59 +00:00
f96064d33c missing header 2008-03-17 16:45:20 +00:00
dae503187c == PyNodes ==
Ongoing updates to the Blender.Node Python API:

- Changed Blender.Node.node to Blender.Node.Scripted to be more specific and conform to bpython API.
- Added a Blender.Node.Socket type to be used to define node sockets in a PyNode script. Also, socket type is inferred from the value(s) passed in, instead of also being defined by the script author.
- Added attr access to input and output sockets in the __call__ method. Ex: an input socket called 'color' can be accessed as self.input.color now.

These changes break existing pynode scripts, which shouldn't be a problem yet, of course, since we're still finishing this feature for 2.46. The wiki page and sample .blends have already been updated:

http://wiki.blender.org/index.php/BlenderDev/PyNodes
http://wiki.blender.org/index.php/BlenderDev/PyNodes/API
2008-03-16 17:24:29 +00:00
26daad49a3 [8559] Python script that uses FIleSelector and has an error in it segfaults Blender
Want completely fixed, check if the script was removed before running the callback.
2008-03-16 14:28:00 +00:00
87c54fb784 Constraints PyAPI:
Added support for Limit Distance constraint
2008-03-16 10:26:13 +00:00
eab07f7322 Constraints Py-Api:
Fixed up Py-API access to PyConstraints. Also updated docs to reflect these changes.
2008-03-16 06:28:40 +00:00
a5d31fc28e fix for [#8559] Python script that uses FIleSelector and has an error in it segfaults Blender 2008-03-15 18:53:42 +00:00
02295c491f forgot to free memory for python api mesh.getTangents() 2008-03-15 17:19:53 +00:00
f70d9ceed0 fix bug in walking through script linked list (thanks VS) 2008-03-15 16:49:22 +00:00
8e126216b0 added mesh.getTangents() to the python api 2008-03-14 18:53:51 +00:00
af93553640 Moved recent addition of get/setPixelF to get/setPixelHDR and kept get/setPixelF limited to 0.0-1.0 range, to prevent existing scripts breaking. 2008-03-12 11:13:57 +00:00
c8d9d60a99 Added python access to TEXFACE_ALPHA 2008-03-12 09:04:07 +00:00
51a8a60d96 Bugfixes:
* Menus could no longer have their items accessed by number (i.e. W-5 didn't run merge tool in EditMode when accessed by keyboard). This was caused by my commit for BUTM (there was some extra code there that isn't really needed, but was causing havok). 
* NumPad can now be used for the above feature too now
* Typo in error message in Constraints PyAPI
2008-03-11 11:22:27 +00:00
294f884a7d fix for cam.setScale(), cam.setClipStart(), cam.setClipEnd() and
cam.setDrawSize(), they would raise errors when setting ints. but used not to.
better tooltips for Uv Stretch
2008-03-11 09:00:09 +00:00
2b42733105 Applied [#7076] Updated Python Image API to use float buffers in getPixelF/setPixelF
and added an image.updateDisplay() function to update imbuf->rect from imbuf->rect_float
also corrected some docstrings and epydocs
2008-03-10 12:17:58 +00:00
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
b13cd8226e Bugfix #8478: Constraints PyApi for setting targetspace non-functional
Finishing off some unfinished business (from the multi-target constraints work), it is now possible to get/set target-space for constraints where this is relevant. 

For this to be possible, target-space setting(s) are now always presented as a list of ints, with each int representing the target-space setting for the relevant target. 

Constraints C-API note:
get_targets function now needs to return the number of targets the constraint can have
2008-03-08 02:16:37 +00:00