Search found 39 matches

by reimpell
Mon Jul 05, 2004 5:07 pm
Forum: Python
Topic: Problems exporting (sticky) uv coords
Replies: 10
Views: 2505

Re: Problems exporting (sticky) uv coords

EDIT: Almost forgot, this is the code I use to export the uv's: f.write(" <uv u="" + `vert.uvco[0]` + "" v="" + `vert.uvco[1]` + ""/>\n") This is the way it is done in the OGRE exporter: if mesh.hasVertexUV(): # mesh has sticky/per vertex uv coordinates uv.u = face.v[i].uvco[0] # origin is now in t...
by reimpell
Tue Jun 22, 2004 12:15 am
Forum: Python
Topic: Eclipse, PyDev and Blender
Replies: 5
Views: 4752

Eclipse, PyDev and Blender

If you like to use an IDE to develop your scripts, you can use Eclipse in conjunction with PyDev . To run blender from inside of Eclipse, you need to add a program entry under "Run->External Tools->External Tools..." with the following settings: Main-Tab: Location: blender executable Working directo...
by reimpell
Mon Jun 21, 2004 11:36 pm
Forum: Python
Topic: a couple of questions about the new API
Replies: 3
Views: 1893

Re: a couple of questions about the new API

Is there a way to (...) to get the name of the currently active world (previously Blender.World.GetActive())? Since there is still no way to do so, I wrote a bug report: [ #1393 ] Blender.World.GetActive() vanished At the moment, there is no way of getting the active world of the current scene, e.g...
by reimpell
Wed Feb 18, 2004 10:47 am
Forum: Python
Topic: getting ipocurve name for action quats
Replies: 4
Views: 1970

Ipo flaws

der_ton wrote:is there a workaround for Blender2.31?
You can put your old code into a

Code: Select all

try:
  # insert old code
except TypeError:
  # insert code for blender 2.32
block and try to guess Ipo names depending on getNcurves().

Regards,
Michael
by reimpell
Wed Feb 11, 2004 11:53 am
Forum: Animation
Topic: Armature inconsistency
Replies: 0
Views: 4219

Armature inconsistency

After the UI redesign, one of the next big projects should be dedicated to blender's Actions. Since I did not find any proposal other than "TBC" I like to point out some problems with the current status: (1) Within the Python interface, there is no direct way to get the IpoCurves of a Bone. This is ...
by reimpell
Fri Feb 06, 2004 12:33 pm
Forum: Python
Topic: IpoCurve.getName() vanished in Blender 2.32
Replies: 4
Views: 1529

IpoCurve.getName() vanished in Blender 2.32

It didn't vanish, armature curves just still don't seem accesable by name. Which doesn't mean it is impossible, you can still access them anyway. In blender 2.28 quaternions have an empty name, which is not a real problem as you already mentioned, but now you can't distinguish single Loc and single...
by reimpell
Thu Feb 05, 2004 12:39 pm
Forum: Python
Topic: IpoCurve.getName() vanished in Blender 2.32
Replies: 4
Views: 1529

IpoCurve.getName() vanished in Blender 2.32

at least for action ipos. Redo: - Add Armature - Pose Mode - Insert Rot Key - inc Frame - rotate bone - Insert Rot Key - run: import Blender for ipo in Blender.Ipo.Get(): for curve in ipo.getCurves(): print curve.getName() Result: TypeError: This function doesn't support this ipocurve type yet I don...
by reimpell
Fri Jan 09, 2004 11:44 am
Forum: Python
Topic: How to access Scene->Format->(Frames per second) value
Replies: 1
Views: 1026

How to access Scene->Format->(Frames per second) value

I couldn't find it in the pyhton API reference but I need it for an animation export script.

Thanks in advance,
Michael
by reimpell
Wed Oct 01, 2003 5:21 pm
Forum: Python
Topic: Report problems with the new Python API here please!
Replies: 72
Views: 23630

FileSelector after DrawProgressBar crashes

Hi! Blender crashes if FileSelector is used after DrawProgressBar. import Blender def my_callback(filename): print "You chose the file:", filename Blender.Window.DrawProgressBar (0.0, "Importing data ...") Blender.Window.FileSelector (my_callback, "Choose one!") Kind regards Michael Used versions: B...