Search found 31 matches

by MangoFusion
Fri Sep 02, 2005 11:21 pm
Forum: Python
Topic: Draw and event numbers
Replies: 2
Views: 1789

Thanks z3r0_d,

If you were wondering, my ListBox control does indeed only draw items that are visible :)
by MangoFusion
Fri Sep 02, 2005 10:47 am
Forum: Python
Topic: Draw and event numbers
Replies: 2
Views: 1789

Draw and event numbers

Hi there,

In my script, i currently have quite a handful of controls, which might even become an even bigger handful of controls (since i am implementing a kind of list box).

Is there any limit to the range of event numbers you can assign to Draw.* controls?
by MangoFusion
Sat Aug 27, 2005 12:39 am
Forum: Python
Topic: Problem with Draw.Image()
Replies: 2
Views: 2355

Thanks ideasman,

Works like a charm. Although its a pity that the gui api in general seems a bit weak :(
by MangoFusion
Thu Aug 25, 2005 8:36 pm
Forum: Python
Topic: Problem with Draw.Image()
Replies: 2
Views: 2355

Problem with Draw.Image()

Hi there, I'm trying to draw an image to my gui using Draw.Image(), but i am encountering a problem. I have created a transparent .png, but upon drawing it, the transparency turns black, so i effectively get a nice black square. I'm loading the image like so: myImage = Image.Load("test-image.png") D...
by MangoFusion
Wed Aug 17, 2005 3:31 pm
Forum: Python
Topic: Python API & RVK's
Replies: 1
Views: 1472

Python API & RVK's

Hi there, I am currently seeking to add support for "Morph Targets" (or rather, blender's equivalent "Relative Vertex Keys") to my exporter. Upon examining how to create RVK's, i thought "Wow, this looks great. I can create the targets for the mesh, and animate them using the Action editor!". Howeve...
by MangoFusion
Fri Nov 05, 2004 10:29 pm
Forum: Python
Topic: Stupidity of python
Replies: 2
Views: 1845

Finally figured it out...

Code: Select all

bmesh.faces[count].materialIndex = group.materialIndex
Was somehow causing memory corruption, which in turn must have caused the error.

Now back to work ;)
by MangoFusion
Wed Oct 27, 2004 10:57 pm
Forum: Python
Topic: Stupidity of python
Replies: 2
Views: 1845

Stupidity of python

Hi there, I have encountered a rather stupid problem with blender's python api. To begin with, i am reading in a list of indices from a file : def arrList(fs, format, size): arr = array(format) arr.fromfile(fs, size) return arr ... self.vertexIndices = arrList(fs, 'H', 3) All is fine. until that is ...
by MangoFusion
Mon Aug 09, 2004 8:55 pm
Forum: Python
Topic: Ipo Module Broken?
Replies: 7
Views: 4285

Ipo Module Broken?

Hi there, I am currently experiencing a problem with regards to grabbing values off of ipo curves in an action. The problem is that i am getting different values in blender 2.34 than compared to blender 2.33. This results in all the frames of my animation screwing up. An example : 2.33 : DBG: Using ...
by MangoFusion
Fri Aug 06, 2004 11:57 am
Forum: Python
Topic: Exporting animation
Replies: 1
Views: 1564

Exporting animation

Hi there, I have managed to export all bone animation more or less perfectly with the Action and Ipo interfaces within the blender python api. However, the format i am exporting to supports more than bone animation, and i cannot determine a way to export this extra data effectively from blender. Fro...
by MangoFusion
Sun Jul 18, 2004 11:16 am
Forum: Python
Topic: Problem with cal3d derived
Replies: 3
Views: 2001

I'm not entirely certain; But of course, it effects if the "updown" value if negative or not. The name, and the comment ("point same direction, or opposite?") implies it has something to do with the bone matrix pointing "up" or "down", so i would guess that it inverts the rotation/translation? The t...
by MangoFusion
Fri Jul 16, 2004 5:32 pm
Forum: Python
Topic: Problem with cal3d derived
Replies: 3
Views: 2001

Problem with cal3d derived

I've noticed a slight oddity in the cal3d exporter code. (which is used by many other exporters). Specifically, this function : def blender_bone2matrix(head, tail, roll): # Convert bone rest state (defined by bone.head, bone.tail and bone.roll) # to a matrix (the more standard notation). # Taken fro...
by MangoFusion
Fri Jul 09, 2004 5:17 pm
Forum: Python
Topic: Notice to Exporter Authors - getMatrix('worldspace') in CVS
Replies: 3
Views: 1924

Just thought i'd add my experiences here with transforming meshes... For me at least, the following code in my exporter works : def collapseBlenderTransform(object): mat = object.getMatrix() cmat = [] for r in range(0, 4): for c in range(0, 4): cmat.append(mat[r][c]) return MatrixF(cmat) ... matrix....
by MangoFusion
Sat Jun 26, 2004 2:02 pm
Forum: Python
Topic: Parenting objects to bones?
Replies: 1
Views: 1551

Parenting objects to bones?

Hi there, I have noticed that if i parent a mesh object to a bone rather than the whole armature, my usual method of using "getVertexInfluences" on the mesh data does not work (i get 0 influences). My question is, how can i determine if i have an object that is parented to a specific bone on an arma...
by MangoFusion
Sat Jun 05, 2004 12:19 am
Forum: Python
Topic: Adding new meshes
Replies: 2
Views: 1769

I tried that, and it seems to be working now. Specifically, i added a flag that gets flipped every time a face is added (except for the first 2 faces), which controls which order i insert the indices. However in some cases i still get the odd surface pointing the wrong way. But not as bad as before ;)
by MangoFusion
Fri Jun 04, 2004 9:19 pm
Forum: Python
Topic: Adding new meshes
Replies: 2
Views: 1769

Adding new meshes

Hi there, I have written an importer script for a particular model format. However, when i take a look at the meshes i import with the script in blender, there are large numbers of faces that are pointing the wrong way! The model format uses triangle strips, so i had to convert them into triangles, ...