Commit Graph

1330 Commits

Author SHA1 Message Date
dcc834f3fa updated render settings to support recent changes.
options like saveBuffers are available from Python and threads can be set from 1 to 8
usefull for python based renderfarms.
2007-01-30 03:02:58 +00:00
Stephen Swaney
d89a7388ea Bugfix for #5846 erratic error with in "ob.getData(mesh=1)"
It looks like the changes for bug
  #5000 Changin EditMode in Script wrecks memory
break the python interpreter.

Since this is critical, I have #ifdef'ed those out of
BPY_interface.c and Window.c.  Did not touch Armature.c.
The ifdefs are tagged with /* bug 5000 */

This means bug #5000 is back in play.  Interesting to note
that according to #5846, only scripts run from the script menu
and not via Alt-P were broken.
2007-01-29 01:27:07 +00:00
5943ad8f65 update to the md2 importer.
* moved from NMesh to Mesh
* made newstyle classes (use less memory)
* optimized mesh creation
* Animation now imports and plays (Bugfix for 5834)
+ other small tweaks

Added mesh.key - was missing from docs
2007-01-28 12:33:04 +00:00
907d19b93d made Mesh.Get('foo') raise an error when foo dosnt exist rather then returning None (to work like other modules)
also update Metaball.Get() to be less messy - still functions the same.
2007-01-28 04:58:22 +00:00
8f075f9518 minor tweaks from testing scripts. correction in my last commit. 2007-01-27 04:58:09 +00:00
853785782e Updated docs not to use Object.New() in examples, use scn.objects.*
Bugfix from ZanQdo, MOT files wouldent load in lightwave. also made some minor improvements.
2007-01-27 02:15:14 +00:00
d79669ad9e added edge split access to modifiers API
Also renamed Type to Types to match with the rest of the API. Type is still there but removed from docs.
2007-01-26 15:43:11 +00:00
Ken Hughes
148a74988e Python API
----------
Replacing locally-declared function prototype with included one.
2007-01-25 19:31:39 +00:00
6446c23447 Needed an extra header to find offsetof
Kent
2007-01-25 16:21:11 +00:00
ea8189389c Bug fix for:
[ #5000 ] Changin EditMode in Script wrecks memory

Armatures create weakreferences in __main__.__dict__.  When Window.Editmode is called, the weaklist it iterated over and armatures are updated.
2007-01-25 15:19:28 +00:00
Nathan Letwory
35bb9dff1d * remove warning about add_only_object 2007-01-24 04:44:49 +00:00
702defaa81 use add_only_object to add a new object with defailts. 2007-01-23 16:51:14 +00:00
Ken Hughes
42ef81d88b Python API
----------
Bugfix #3233: throw an IOError exception in Library.Open() if the specified
library file cannot be opened.

This had been changed to a "feature request" but should have been a bug, even
though it worked as documented (or rather, the documentation described what
the function did).
2007-01-22 22:59:34 +00:00
Ken Hughes
f80ff6c7da Python API
----------
Fix minor typo in Mesh API docs.
2007-01-22 16:13:01 +00:00
a03c8ba8a0 creating new objects from
ob = scn.objects.new(arm_data)
didnt work.

Also added docs to Pose - that make an armature, add an action and add pose keyframes
2007-01-22 11:26:55 +00:00
33e8d4b3e2 Made scene.currentFrame(val) call scene_update_for_newframe if the scene being modified was G.scene
Before this, calling scene.currentFrame(val) would not work to update object displists where Blender.Set('curframe', val) did work.
Also used less python BuildValue calls.
2007-01-22 03:59:52 +00:00
25372193f5 Looking to see why SGI wont compile this.
fixed some getsetattr args that wernt cast to (void *)
this is now consistant with Object.c - but Im not sure why SGI has trouble.
2007-01-22 00:04:13 +00:00
38375784df [ #4786 ] if space in the Application path name, system() doesn't work on some platforms
commited temporary fix: executable name is quoted for all platforms except Windows now,
nicely wrapped in #ifdefs. Will be doing nice wrapper function BLI_system for system calls in blenlib
after release.
Please test on all platforms!
2007-01-20 08:01:56 +00:00
6b67ba00bb IDProp, removed reference to self - other EPYDocs dont use this and its confusing.
Differentiated properties and "game properties" in Object docs.

Also the new NLA/Pose key docs were added in the property class instead of Object, tsk tsk.
2007-01-18 18:09:28 +00:00
4d44475543 Bugfix #5732
Python scripts: when setting a layer for an object, the function assumed
the object had to be in the current scene, thus ignoring layers for other
objects.

Now the object->lay value is set always.
2007-01-17 21:07:10 +00:00
b9039611c6 bugfix for 5572, BLI_makestringcode was being used to join 2 paths, but adding c:\ to the start of a non root dir. it wold be nice to have a BLI_join_path for this to avoid #ifdef WIN32's in the main code and to check for existing slashes 2007-01-17 15:04:37 +00:00
b630794be7 bugfix for 5572, BLI_makestringcode was being used to join 2 paths, but adding c:\ to the start of a non root dir. it wold be nice to have a BLI_join_path for this to avoid #ifdef WIN32's in the main code and to check for existing shashes 2007-01-17 15:01:56 +00:00
c967679bb8 == Armature Joining Bugfixes ==
Since 2.40 (and a few pre-releases around then), armature joining has not
worked correctly. Constraints and other attributes of bones in posemode
(IK DOF limits, transform locks, custom shapes, etc.) were not preserved
on the armature(s) that were joined onto the last selected armature. This
was a serious production problem, as it meant that you could not easily
add pre-made rig segments and merge them with the rest of your rigs without
having to redo all the constraints. After a few attempts, I've finally
managed to fix this.

All constraints and parenting relationships get name corrections for the post-
merge armatures. Action channels in actions don't really get any corrections
yet unless the action is being used by an Action Constraint.

Python-API people: beware, I may have broken something in this commit.
2007-01-16 09:18:01 +00:00
Stephen Swaney
fbfe27761a fix for warning: implicit declaration of function 'id_us_plus'. tsk. 2007-01-16 05:20:39 +00:00
Stephen Swaney
d917157f59 bugfix: #5581 Joining python created curves crashes Blender
Curve_appendNurb() was incorrectly appending Nurb to Curve
rather than using BLI_addtail().
2007-01-16 04:08:12 +00:00
048bb84f82 Cleanup of pose insert methods for Armature objects, as planned in the post to bf-python.
Two sensible methods left in: armatureobject.insertPoseKey and .insertCurrentPoseKey,
but still left unofficial i.e. not published in the api doc yet, because of additional
error checking is still needed and more testing too. But at least is now in better shape to
work on to be published in a later release.
2007-01-15 16:00:36 +00:00
7a19fe19f6 =ID Property Script update and api bugfix=
Turned out somehow I managed to miss adding the proper
type refs in Blender.Types for IDGroupType and IDArrayType,
which made the script not work.  So, I've got it all fixed now.
Or at least hopefully :)
2007-01-15 07:54:08 +00:00
Ken Hughes
8ea091568f Python API
----------
Changed Mesh Primitives doc example to use scn.objects.new().
2007-01-13 18:37:14 +00:00
a935c48fec added stress and tangent to MTex and texture mapping dict 2007-01-13 05:06:28 +00:00
156ac69aad driverExpression - strcpy on wrong type (my bad) fixed.
added .sel bool for Ipo curves.
2007-01-13 04:53:41 +00:00
Ken Hughes
59f8507a87 Python API
----------
Added CurNurb.recalc() method.  I thought I had commited this before as part
of a bugfix but obviously not.  It allows control point handles be recalculated
after changing  a curve's bezTriples.
2007-01-12 22:40:30 +00:00
Ken Hughes
9c0cb4632d Python API
----------
Typo corrections in Mesh API doc.
2007-01-12 22:35:42 +00:00
Ken Hughes
1a4e64cd02 Python API
----------
Bugfix: Object.setEuler() didn't accept an Euler object.
2007-01-12 22:15:33 +00:00
54863a2fef error, camera scale couldnt be set. bpyrender now sets ortho properly 2007-01-12 00:31:18 +00:00
Ken Hughes
60bed24b35 Python API
----------
Change Scene API example to use scene.objects.new() instead of
Object.New()/ob.link()/scene.link().
2007-01-11 15:27:58 +00:00
235ad674c8 made mesh.getFromObject also get the meshes smoothing value when copied from another mesh object. 2007-01-11 09:15:31 +00:00
a18275c818 added a note that mesh.update() has changed sine 2.42 and a warning about the Eeekadoodle that haunts Mesh since its a thin wrapper. 2007-01-09 14:06:25 +00:00
2e66b143f3 - Added panel for Bake render (tabbed now in 'anim' panel).
(Empty space will get OSA options, that I add tomorrow or so)

- Removed a lot of old unused variables in renderdata. Also meant I had
  to remove this from python API... please check if this gives valid
  scripts?

- Cleaned up bad formatted code for FFMPG buttons (spaces instead of tabs)
2007-01-09 11:10:12 +00:00
ca97ede0cd fixes spelling of filename.
Window.c was calling undo_push_mesh, even for non mesh objects, exiting editmode would crash for any non mesh object (found with the armature symmetry script), bad juju.
2007-01-09 05:28:37 +00:00
713f42dc3c Metaball - docs were wrong
Sound - needed t ohave the PyType as extern
3ds_export can now export derived objects (dupli's)
2007-01-07 15:33:28 +00:00
b4bd6cc9db patch 5054, modifier docs addition.
Sound, Chech_SoundType function
2007-01-06 23:44:56 +00:00
1d0af71d39 added lots of warnings for the makeEditable() command. - A user was having problems editing pose data after calling it. 2007-01-06 07:40:06 +00:00
a3da55d5ce epydocs - Constants were wrong QUAT/ROT/LOC, should be LOC/SIZE/ROT 2007-01-06 04:22:10 +00:00
4787b97d09 made comparing buttons the same as comparing thir values.
bug 5612  (not a bug but this makes it work as scripters may expect)
2007-01-06 04:10:51 +00:00
50edac630b removed blender2cal3d.py, this is the second time where nobody has been able to maintain this script to fix minor bugs, aparently the cal3d/soya guys maintain their own scripts anyhow.
Adding switchDirection() for curNurbs. simple function and double checked to make sure its ok.
2007-01-04 10:18:37 +00:00
59e44e4afa added sharp edge theme color 2007-01-03 05:50:17 +00:00
426cc6dca3 weightpaint_envelope_assign - was making an error checking a null vgroup
API_intro - changed URL from elysuin
others - added __copy__() docs.
2007-01-02 13:12:23 +00:00
91b2bc5c23 Python API:
-Added missing access to Node win theme (thanks Mickaël Le-bihan for pointing) and also options group and group_active.
-Added Node space to Window.Types dict.
-Tiny update to the save theme script version numbers (keeping 2.42 for now to avoid popups, but should change to 2.43 right before release).

BTW: Happy New Year everyone :).
2006-12-30 18:28:49 +00:00
5af67129f8 * theme save script now saves iconThemes and supports string types.
* added .iconTheme variable
* bugfix. drawType was not being saved because Py_BuildValue and __members__ was missing an "s"
* added Blender.Get('icondir')
2006-12-30 07:32:58 +00:00
6985409d6a added pose_bone.displayObject for getting/setting custom bones 2006-12-30 01:04:19 +00:00