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?
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...
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...
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 ...
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 ...
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...
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...
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...
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....
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...
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 ;)
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, ...