Search found 4 matches

by Snafubar
Fri Nov 07, 2003 7:45 pm
Forum: Python
Topic: Report problems with the new Python API here please!
Replies: 72
Views: 24649

update(1) does not do a full update...

Although the docs do not explicitly state that 'update(1)' will update the scene's matrices and mesh deformations, I believe it should. I posted a workaround to the getMatrix() thread, about using RedrawAll() after a setCurrent(frame) to make blender do a real full update, updating the scene's trans...
by Snafubar
Fri Oct 24, 2003 10:18 pm
Forum: Python
Topic: Report problems with the new Python API here please!
Replies: 72
Views: 24649

API Doc is missing ipo.getCurves()

I suspect the API Document is missing ipo.getCurves().

You can get the ipo of an object, but you can't get the curves of the ipo!
Well, actually, you can... but I had to find it!

strings blender | grep -i curve



Jamie.
by Snafubar
Fri Oct 24, 2003 5:43 am
Forum: Python
Topic: getMatrix with animation
Replies: 2
Views: 1821

Aha!

By digging through the source code, I have discovered a workaround!

First off, the scene.makeCUrrent() was unnecessary.
Second, here's the trick:

.... scene.currentFrame(n)
.... scene.update(1)
.... Window.RedrawAll()

That RedrawAll will cause all object's Matrixes to be updated!

Jamie.
by Snafubar
Thu Oct 23, 2003 6:26 pm
Forum: Python
Topic: getMatrix with animation
Replies: 2
Views: 1821

I have experienced the same problem... Waaah! However, I have noticed the following: If you have, for example, a ten frame animation, and you set the current frame to frame 4 before calling the script, then frame 4's matrices will be used for all frames in your script. My script, for example, does t...