Commit Graph

1393 Commits

Author SHA1 Message Date
8e0704f59a Added python access to material and texture colorbands.
mat.colorbandDiffuse
	mat.colorbandSpecular
	tex.colorband

gen_utils - removed unused func
2007-03-08 06:35:01 +00:00
4bd5ab628b == Multires ==
Fixed bug #6153, Blender Crash during rendering (internal) with object selected in edit mode.

* Added a render parameter to several of multires's functions. If render==true, multires won't push data onto the undo stack, and regular Mesh data is always used (as opposed to EditMesh data.)
2007-03-08 05:54:39 +00:00
f361c49d70 Was missing a define for intern_pos_update, somehow GCC didnt complain but MSVC did. 2007-03-08 03:04:17 +00:00
9e2081a5fc made alloc_sequence accept a linkedList so it can be used from Python.
the start/end points for new strips were not set properly.
2007-03-07 14:58:29 +00:00
d79f21eba7 DNA_meta_types.h - had a max element type defined that wasnt used anywhere, and some metaballs alredy use more then 1024 elements.
Metaball - added metaball.update attribute and constants Mataball.Update.ALWAYS, NEVER, HALFRES and NEVER
2007-03-07 09:53:40 +00:00
37c7d4d385 Type header_seq.c - Reassing Inputs -> Reassign Inputs
Mesh.c added new function to mesh - mesh.pointInside(vec)
2007-03-07 08:53:26 +00:00
Ken Hughes
69dc499ee7 Python API
----------
Add some missing Py_DECREF() calls.
2007-03-07 00:56:09 +00:00
Ken Hughes
b68ecc9f8b Python API
----------
Converted CurNurb module to tp_getseters.
Added patch #5761 to provide read access to NURB knot vectors.
2007-03-06 18:55:35 +00:00
Ken Hughes
e85228cfd9 Python API
----------
Bugfix #6166: Mesh.getFromObject() didn't accept three parameters.
2007-03-06 18:35:03 +00:00
Ken Hughes
67e1188eb7 Python API
----------
Forgot to put sentinel at end of Curve_getseters, probably the cause of
crashes on OSX (thanks Stephen!).  Also add doc strings for attributes, add
missing "taperob" attribute to python docs.
2007-03-06 16:50:58 +00:00
69a46946e1 adding experemental sequencer module, This may change or be removed before next release.
scene.sequence - This is an iterator that loops over strips, metastrips are intern iterable.
currently has support for dealing with scene strips and metastrips, generic strip options and moving strips about.
2007-03-05 15:26:03 +00:00
Ken Hughes
5dfd59239b Python API
----------
Conversion of Curve module to tp_getseters.
2007-03-05 03:44:48 +00:00
Ken Hughes
e276a6f748 Python API
----------
Removed prototype for recently-removed Blender_RemoveFakeuser().
2007-03-05 03:38:41 +00:00
Ken Hughes
5ddf565d66 Python API
----------
Fix potential problem with tex.evaluate(); calling multitex_ext() with
non-zero integers instead of pointers.  Campbell, double-check that this fix
is correct, otherwise take another look at what it should do.
2007-03-05 03:34:40 +00:00
0a227f5e20 made it possible to set a modifiers object to None to remove the object
added initial support for the displacement modifier
2007-03-04 11:48:37 +00:00
ffab782e4c Added functions to Text3d that allow modifying of text frames
* .addFrame()
* .removeFrame(index)

getseters
* .activeFrame
* .totalFrames
* .frameWidth
* .frameHeight
* .frameX
* .frameY
2007-03-03 14:05:36 +00:00
8437b84c45 Pose.c - added option not to update IPO's when adding a keyframe to a bone.
bvh_import.py
- delaying IPO updates gives a significant speedup.
- IPO's use linear interpolation now
- Added an option to loop the animation.
- fix for own bug, importing to empties never worked.
2007-03-03 01:29:22 +00:00
cf75e5b78c Interface:
Added option "Load Factory Settings" in the "File" menu.

With this, users don't have to remove .B.blend if they want to load the default data stored in Blender. Thanks Ton for ok'ing it and suggesting a better place in the menu (I had put it as "New (factory defaults)").
2007-03-02 18:15:41 +00:00
b2acdd69b0 vector.c - bugfix, vec.w accessed vec[4] not vec[3]! (probably my fault)
Texture.c - added "val = tex.evaluate(vec)" so you can find the color/intensity at a given loaction for a texture.
2007-03-02 09:48:04 +00:00
335f3424ca made libdata iterator types use existing function from BPY_interface - ID_asPyObject(*id) 2007-03-02 05:47:14 +00:00
585edac6d2 various warnings fixes - mostly casting and initialization issues 2007-03-01 21:30:48 +00:00
8e306366ef own error, missing braces. 2007-03-01 15:40:13 +00:00
69eb4eefb5 Scene.c - world could not be set to None, added "cursor" attribute.
Scene.py - added docs for new scen attributes.
meshtools.c - typo
2007-03-01 13:22:26 +00:00
c7ad7cd1b0 === bugfix ===
[ #6077 ] Scripts in sub-sub-folders of Blender's scripts folder won't run.
[ #5572 ] Scripts in sub-folders of Blender's scripts folder won't run
- I've added a function in blenlib to join two strings with a path separator in between.
- Willian, Campbell, please check if commit in BPY_menus is ok and test - thanks!
2007-02-28 21:37:14 +00:00
780177ec13 mis named Layer, should be Scene.Layers 2007-02-28 04:50:39 +00:00
4f9cb4c710 dumb error with Lattice getseters, found with a python random testing script 2007-02-27 15:59:25 +00:00
7380249cb4 added wrong file. 2007-02-27 12:55:48 +00:00
e3f8c62028 fix for own error, mixed decloration. 2007-02-27 10:27:12 +00:00
d067c11336 added id_attributes.py, this containes ID doc strings, all datablocks that have use ID props import this docstring. 2007-02-27 10:23:24 +00:00
9d7ace2654 x3d_export.py - fix for bug 6120
Sound.c - moved to getseters
2007-02-27 06:39:48 +00:00
58d1a25da0 moved Lattice to getseters. gen_utils.c - removed unused code fixed a warning. 2007-02-27 04:28:15 +00:00
a3320f209c console.py
* improved autocompleation
* faster dictionary usage

Types.c
* type(scene.getTimeLine()) # old bug, will crash blender
2007-02-26 02:24:04 +00:00
ebc042a808 World.c
* moved to getseters with id attribs
* added 2x missing checks for list size when parsing args.

Text3d.c
* use getseters with id attribs
* added a comparison function
2007-02-25 17:38:22 +00:00
a05f95f347 Image.c
* moved to getseters (use new generic ID funcs)
* added 'reflect' attribute

Text.c
* moved to getseters (new generic ID funcs too)

NLA.c
* moved to getseters (ditto)

Ipo.c
* bugfix, allow nested loops on an IPO's curves.

Blender.c
* removed undocumented function RemoveFakeuser, since actions now have the fakeUser attribute.
2007-02-25 12:41:50 +00:00
436e1697fd made attributes (name, property, users, fakeUser, lib) into functions all python types can use.
removed a lot of code duplication when moving to this.
Also removed unused functions GetMaterialByName(), same for Mesh, Object, World etc.
2007-02-25 07:36:50 +00:00
e64b887fad comments in these files made gcc choke, removed 2007-02-25 02:02:53 +00:00
Stephen Swaney
d07e0abf89 print out the subversion of the Python version string. ex 2.4.2 2007-02-25 01:41:14 +00:00
75147698e2 Scene
* Moved to getsetattrs
* added scene.users (get)
* added scene.fakeUser (get/set)
* added scene.world (get/set)
* added scene.timeline (get)
* added scene.render (get)
* added scene.radiosity (get)
* added scene.objects.camera (get/set)

Group
* added properties

gen_utils
* made getScriptLinks work as documented, return an empty list rather then None.

header files, noted libdata after PyObject as a requirement.

Others,
* Deprecate prints for older functionality

EpyDocs still need updating.
2007-02-25 01:07:28 +00:00
086d51c822 BPython API
* Added data.lib attributes to almost all data types, (except for Text3d and NLA)
  This is None or the path of the library as a string.
* Main was giving a warning, Include Curve.h rather then CurNurb.h
* Added Library.LinkedLibs(), returns a list of externaly linked libs.
2007-02-23 14:51:20 +00:00
9759a373d7 Updating own scripts to use Blender.Main, remove Base files. 2007-02-22 15:48:26 +00:00
c540c8fa44 renamed Base to Main 2007-02-22 15:26:35 +00:00
1190b45263 Adding a new way of dealing with library data in blender, Blender.Base
Has a number of advantages over the existing method, described here.
http://wiki.blender.org/index.php/User:Ideasman42#Post_2.43_Update_to_the_Python_API

Only missing functionality is the ability to add new data through Base.scenes.new('name'), where scenes could be meshes, texts etc.

Other changes are minor,
Scene.h, bad var name in definition.
Text.c/h - moved the Python Struct into the header file, added BPy_Text_Check()
2007-02-22 14:37:30 +00:00
Stephen Swaney
5cc58ba8fe Doh! prototype for Armature_CreatePyObject() was already added.
I plead incompetence.  more coffee, please.
2007-02-22 10:46:02 +00:00
Stephen Swaney
5cb958f305 broken build!
FILE_MAX undefied in util.c
implicit method def Armature_CreatePyObject() in Armature.
2007-02-22 10:20:27 +00:00
fbd8a16933 Compiling bugfix:
Campbell's change from yesterday (renaming PyArmature_FromArmature
to Armature_CreatePyObject) broke compiling here - was missing change to
this file.
2007-02-22 10:00:47 +00:00
a2ce2600d9 renamed posebone.ik to hasIK, removed unused code, made the function name of Armatue's py object from Blender object consistant with others. 2007-02-21 23:14:01 +00:00
943007abbf text.makeCurrent() works now, it depends on the script menu type, so will only work from some menu's. 2007-02-21 13:00:12 +00:00
f71458b904 adding menu slot Armature
adding menu slot ScriptTemplate
new script scripttemplate_mesh_edit is a template for an editmesh script.

The function Text makeCurrent() is a dummy until I can get it working when the script runs from a menu.
2007-02-21 11:17:17 +00:00
6831c04533 * added MTex uvlayer string attribute
* added Pose attribute "ik" True/False depending on the pose bones IK.
  limitX/Y/Z bool's
  lockX/Y/ZRot bool's
  stiffX/Y/Z floats
  stretch (ikstretch) float
2007-02-20 23:23:54 +00:00
64231d19bf Object parentType could never match Object.ParentTypes.LATTICE, Id incorrectly assigned the lattice constant. Armature and Lattice parent types are the same. documented this. 2007-02-20 09:23:13 +00:00