Commit Graph

47594 Commits

Author SHA1 Message Date
Joseph Gilbert
2a6952f386 - bug fix
* C uses braces unlike python :/
2006-05-25 21:13:13 +00:00
Joseph Gilbert
1b577b7f0d *python documention & bug fix
- added documentation to Render - saveRenderedImage has an option to save the zbuffer along with the image
(off by default)
- fixed a really annoying runtime error of uninitialized data being passed to a method in pipeline.c during a render
2006-05-25 21:10:28 +00:00
Joseph Gilbert
af87c651a5 *python fix
- fixed Render.saveRenderedImage() so now it works once again
(it was broken since render refactor)
2006-05-25 20:47:17 +00:00
Joseph Gilbert
d8d720ed3a * update for projectfiles vc7
- added python files
- fixed a small C coding error in vpaint preventing windows builds
2006-05-25 19:18:04 +00:00
Ken Hughes
da31dfe603 Remove dead code in add_primitiveMesh(), left after UV Sphere was made
to aligns with view.
2006-05-25 18:28:51 +00:00
Ken Hughes
8fb3373a78 ===Python API===
Ok, now let's try making the Mesh Primitives documentation accessible.
2006-05-25 17:00:17 +00:00
Ken Hughes
48033e00c4 ===Python API===
Fulfilling a very old feature request: a new Mesh Primitives module is
introduced, which gives script writers access to the Blender mesh datablocks
created from the "Add->Mesh" menu.  You can now do this:

  from Blender import *

  me = Mesh.Primitives.UVsphere(10,20,3) # 10 segments, 20 rings, diameter 3
  ob = Object.New('Mesh','mySphere')
  ob.link(me)
  sc = Scene.GetCurrent()
  sc.link(ob)
2006-05-25 16:45:24 +00:00
Jiri Hnidek
1b2d9b5ade Bugfix:
Ubuntu users can set up locales again (propably some other linux distros
 had same problem)
2006-05-25 15:36:38 +00:00
Campbell Barton
9659cdda80 fix a bug in vpaint when changing scenes,
ob= OBACT;
if (!ob->id.lib) return;

Doset account for OBACT being null, this probably exists in other ares too.
2006-05-25 14:24:22 +00:00
Erwin Coumans
46a98446a4 added a stub for multitex_ext, returning the year I was born ;-) 2006-05-25 14:18:48 +00:00
Ton Roosendaal
44806b034b Plumiferos fix: Material option "Env" did not mask out Ztransp faces in OSA 2006-05-24 18:26:54 +00:00
Ton Roosendaal
9c4f7c1032 Plumiferos fix; having more than 64 Shape Keys didn't allow the channels in
IpoWindow to select.
2006-05-24 17:15:26 +00:00
Ton Roosendaal
b67eac2cfd Removed annoying debug print that checked preview render size while doing
previews in Nodes.
2006-05-24 12:10:28 +00:00
Ton Roosendaal
12a6cd486f Bugfix #4213
Using "Fresnel" for transparency only worked when material had "ZTransp"
set. That's not a real problem, but it made Fresnel not work for Materials
used in Nodes.
Now a Fresnel on alpha works always.
2006-05-24 12:07:54 +00:00
Ton Roosendaal
7198a6cf66 Bugfix #4211
"Copy Modifiers" (CTRL+C) only copied a single modifer, when a specific
type was choosen. Now it copies all modifiers with indicated type.
(Like: when you have a X, Y, Z mirror modifier).
2006-05-23 17:49:21 +00:00
Alexander Ewering
2114b63d32 Fix underlining for text objects to use correct material index (and prevent
renderer from crashing).
2006-05-23 15:11:08 +00:00
Ton Roosendaal
e5791fb40e Bugfix #4214
Dependency order issue: Camera view was calculated before Camera Object
got evaluated for dependency changes, causing lags.
2006-05-23 14:57:40 +00:00
Ton Roosendaal
ebe2958559 Bugfix #4212
Material Nodes: The Texture node didn't do the standard "2d mapping" yet
in case an Image Texture is used. Caused wrong mapping for example for UV
coordinate inputs.
2006-05-23 14:15:07 +00:00
Stephen Swaney
8aeaf82a67 set locale to POSIX so regex works on platforms that set funny
locales.  needed to make "ls [A-Z]*.py" work properly.
Setting LC_ALL=C may be a better choice than LC_ALL=POSIX.
We shall see.
2006-05-23 02:27:22 +00:00
Erwin Coumans
ab71e2a9b5 -added basic support for GameActuator 'load game', relative paths were broken, just load file into memory and load blend from memory.
-near sensor support
- python binding for PhysicsConstraints.setNumTimeSubSteps (dividing the physics timestep to tradeoff quality for performance)
2006-05-22 21:03:43 +00:00
Ken Hughes
677cf7f133 ===Python API===
Adding support for Action Strips to the API.  A new attribute "actionStrips"
has been added to the Object API to access them.
2006-05-22 14:19:52 +00:00
Matt Ebb
a849ba8189 * Disabled the Shift-Space window maximise shortcut while within text object edit mode 2006-05-22 07:07:19 +00:00
Matt Ebb
7706d2e40f * Made the editmode text cursor draw inverted, so you can actually see where it is on a black background 2006-05-22 05:52:48 +00:00
Martin Poirier
f849384fcd === Python API ===
Fixes for the bug introduced by my other commit the other day.

Blender.Draw.Create now does proper error checking.
2006-05-22 01:59:28 +00:00
Joseph Gilbert
58648f0ed2 python documentation update 2006-05-21 21:04:21 +00:00
Joseph Gilbert
023737daa4 *python additions
- added a method Action.getFrameNumbers()
returns the frames at which keyframes were inserted for this action

example usage:
import Blender

myobj = Blender.Object.Get('Armature')
myaction = myobj.getAction()
frames = myaction.getFrameNumbers()

for frame in frames:
	print 'bones at frame %d' % frame
	myobj.evaluatePose(frame)
	pose = myobj.getPose()
	for bone in pose.bones.values():
		print bone.head, bone.tail
2006-05-21 21:02:29 +00:00
Ton Roosendaal
f13d63ca48 Brought back the Scene strip in Sequencer. Even does a full composite with
only images input in compositor. Currently still renders in the scene's
own resolution. It also doesn't show scanline/tile updates yet while
rendering.
2006-05-21 20:59:54 +00:00
Campbell Barton
33c0ebbc8e Intergrated select group editmode into the menus and re-shuffled the Mesh tool buttons to fit a threshold value in.
also changed the way areas/perimeter and lengths are compared so it will be indipendant of scale.
2006-05-21 17:12:10 +00:00
Peter Schlaile
2f4b5dbab2 ==FFMPEG==
Bugfix: Don't draw mux_rate and max_rate output buttons on the same
screen position. (Never noticed, always used presets... )
2006-05-21 14:32:05 +00:00
Peter Schlaile
3874f7cd97 ==FFMPEG==
Bugfixes: If we got problems on open, don't close a codec context, that
was never created. (read: don't dump core ;-)
2006-05-21 12:20:45 +00:00
Ken Hughes
f3ae4d0f4d ===Python API===
Something to try making import/export script writers happy; Mesh.New() will
not create a new Blender mesh datablock unless the mesh is linked to an
object.
2006-05-20 16:52:11 +00:00
Martin Poirier
befd007511 === Python API ===
Blender.Draw.ColorPicker

	Enables scripters to use a color picker in there scripts.

See this file for a trivial demo: http://blenderartists.org/~theeth/colorpicker.blend
2006-05-20 15:44:14 +00:00
Erwin Coumans
6d3afda093 added fixed_framerate command line option 2006-05-19 22:55:12 +00:00
Joseph Gilbert
2cd91acf37 *python addition
- modified the repr for beztriple to print less non-sensical output
- beztriple now prints its handles and control point only
2006-05-19 21:45:27 +00:00
Peter Schlaile
069e83be53 ==FFMPEG==
Bugfix: FFMPEG-Codec Preset now changes values immediately. (One has to set B_REDR on the menu-button,
allqueue alone doesn't do the job...)
2006-05-19 17:39:44 +00:00
Campbell Barton
1022107236 Image and Draw wernt converting the paths of an image properly.
Getting teh size of an image with a relative path "//foobar.png" would always fail.
2006-05-19 15:33:23 +00:00
Peter Schlaile
33b8aba3e3 === Sequencer ===
Bugfixes:
- Made the HDD-Audio-Code silence buffers in advance before doing a seek
  operation. Stops noise on end of file or decoding errors.
- Corrected hanging of audio decoding loop bug on some MP3-files.
  (you had to close blender and restart)
- Made preseeking code not seek before beginning of file.

seqaudio:
- made some "local globals" static.

Problems remaining: VBR-MP3-length isn't detected correctly so the
displayed sequence strip is too long...
2006-05-19 13:30:23 +00:00
Ton Roosendaal
18bcef6777 Plumiferos bug report; duplicating strips with effects crashed.
Was in new code that handlerized callbacks... leaving function pointers
unassigned. Dubious code... I would NULL everything first before filling.
2006-05-18 19:42:47 +00:00
Nils Thuerey
24c3187afe - fixed geometry init problem (stupid, forgot to call reset function) 2006-05-18 13:52:49 +00:00
Chris Want
a0fdbf1c18 Added Blender.Get('rt') so that the pythoner can access the value
of the rt button for setting debugging levels.
2006-05-17 16:42:04 +00:00
Ken Hughes
18b622ca6b ===Python API===
Change code for rigid body access to use attributes instead of methods; also
add documentation to epydoc.
2006-05-17 16:08:54 +00:00
Jens Ole Wund
922cc48f15 #4201 the second
humm .. a bit more testing showed AVI codecs want it 2 byte aligned
found nothing in MSDN Library about that
2006-05-17 11:31:12 +00:00
Alexander Ewering
3417378a3a Fix a buffer overflow in Blender.sys.splitext. It was checking for bounds
(although it did this one char too 'friendly'), but still happily copying
the string even if it was too long.

Pythoneerz, please check if this is the correct fix :)
2006-05-17 10:09:20 +00:00
Erwin Coumans
e41b683605 Ghost can be any bound type in Bullet, so removed the edit restrictions 2006-05-16 23:49:44 +00:00
Erwin Coumans
91c5d75c4d added 2 more Rigid Body Python access, should be enough to make a start for Collada 1.4 Physics Import/Export 2006-05-16 23:47:29 +00:00
Erwin Coumans
a88675d0e4 Added first Rigid Body python access (mass). Basic others will follow. This helps Collada 1.4 Import/Export. 2006-05-16 23:17:56 +00:00
Campbell Barton
456396fc3e Made it so when a text block is removed (using the cross button in the header), the previous text block becomes active, to be consistant with scene and screen delete operations. Also makes removing all the text's within a blend a lot less tedious - (Something I do for bug report Blend's)
change to drawtext was just to comment on what pop_space_text does, names not obvious.
2006-05-16 22:54:55 +00:00
Joseph Gilbert
bb69543fa9 *added new Object method Object.evaluatePose(frame)
- the new methods will advance an object's pose correctly to any frame

Example:
myobj = Blender.Object.Get('obert')
for x in range(10):
  myobj.evaluatePose(x)
  pose = myobj.getPose()
  print 'Data at Frame %d' % x
  for bone in pose.bones.values():
    print bone.head, bone.tail
    print bone.head, bone.tail
2006-05-16 20:32:21 +00:00
Jens Ole Wund
d4ec63235a bug #4201 fixed
one from the stoneage

providing proper padding for non 4 byte aligned rows when passing data to windows codecs

NOTE however some popular codecs like divx refuse to work with image dimensions like that
-did put a nice printf in for that.

i'll leave this open on tracker since i expect surprises with one of the zillion codecs.
unless prooven to do no harm
2006-05-16 19:38:57 +00:00
Geoffrey Bantle
563247f7a7 -> Sanity Check for Stored Selections
When a python script modified the selection state of a vertex, edge or face this could cause the creation of invalid EditSelection structures when entering editmode. Added a check to the function 'make_editmesh' to correct this.
2006-05-16 03:40:36 +00:00