Search found 21 matches

by damix
Tue Jan 08, 2013 3:18 am
Forum: Python
Topic: Animation in detail
Replies: 0
Views: 592

Animation in detail

Hi everybody, I've been searching a good article on how armatures work for quite a long time; I'm interested because I'm working on a custom exporter, and I really want to know as much as I can on the topic. I'm also studying the Blender source code, but the C code is obviously "cluttered" with hand...
by damix
Sun Oct 21, 2012 8:29 am
Forum: Foundation and Websites
Topic: Reporting documentation errors
Replies: 1
Views: 7416

Reporting documentation errors

Hi everybody. A reply (from Ido) to one of my previous posts (see link after Python code) suggested that the best place to report errors in the Python API online documentation may be perhaps under 'Foundation and Websites'. During my experiments with the API I found quite a lot of mistakes in the do...
by damix
Wed Oct 10, 2012 8:51 am
Forum: Python
Topic: Invoking an operator from the command line
Replies: 1
Views: 1029

Maybe it does work...

Actually, it seems like reversing the order of the arguments did the trick; I did not notice that it was working correctly because probably I saved the blend file when there were still two windows open after the previous attempt. So yes, the following command launches Blender at the file browser, re...
by damix
Tue Oct 09, 2012 3:55 pm
Forum: Python
Topic: Invoking an operator from the command line
Replies: 1
Views: 1029

Invoking an operator from the command line

Hello everybody. At the end of my export script I wrote: bpy.ops.export_scene.dmx('INVOKE_DEFAULT') because I want the file browser to pop up when I click 'Run Script' in the text editor. This works fine. Now I would like the same thing to happen when, instead of using the text editor, I pass the sc...
by damix
Wed Aug 22, 2012 4:37 pm
Forum: Python
Topic: Selecting a single object in a context-independent way.
Replies: 2
Views: 1623

Can someone point me to proper documentation for bpy.context.edit_object? More in general is there a good source of information on contexts and operators? I have read the five subsections of Blender/Python Documentation at the page http://www.blender.org/documentation/blender_python_api_2_63_17/cont...
by damix
Tue Aug 14, 2012 7:04 pm
Forum: Python
Topic: Help on Bone and PoseBone
Replies: 1
Views: 2559

For instance, something that I find quite interesting is that if I decompose() the PoseBone.matrix I always get that the scale part is (1, 1, 1) even if the bone is not of unit length in edit mode. >>> pb2=bpy.data.objects['Armature'].pose.bones['Bone.002'] >>> pb2.matrix.decompose() (Vector((0.0, 0...
by damix
Tue Aug 14, 2012 6:06 pm
Forum: Python
Topic: Help on Bone and PoseBone
Replies: 1
Views: 2559

Help on Bone and PoseBone

Hi everybody, I'm struggling with the following properties exposed through the Python API: PoseBone.matrix PoseBone.matrix_basis PoseBone.matrix_channel Armature.pose_position Where can I find detailed information on these properties? How much of what described in http://www.blender.org/development/...
by damix
Mon Aug 13, 2012 11:38 pm
Forum: Python
Topic: Selecting a specific vertex
Replies: 1
Views: 3977

Possible solution

Hello CallMeMisterX, if your problem is finding the center top vertex, I think you can safely assume it is always vertex at index 1. I tried with various cylinders, with odd and even sides and it always selected the top vertex in the center of the triangle fan. If you are interested in the center bo...
by damix
Mon Aug 13, 2012 7:24 pm
Forum: Python
Topic: Philosophy of bone matrices (and scale)
Replies: 0
Views: 4396

Philosophy of bone matrices (and scale)

(Sorry, long post with quite a lot of background information) Hi everybody, I'm writing an armature/animation exporter for my personal OpenGL ES engine and I would like to match Blender behaviour as closely as possible. Before tackling the problem of vertex deformation, I would like to be able to dr...
by damix
Tue Aug 07, 2012 1:57 pm
Forum: Python
Topic: Selecting a single object in a context-independent way.
Replies: 2
Views: 1623

Further details

In terms of context, this is what is going on: when Cube.001 is selected, in edit mode, both object and edit_object context are pointing to it. Hence before executing the script (version _v1) we have: >>> bpy.context.object bpy.data.objects['Cube.001'] >>> bpy.context.edit_object bpy.data.objects['C...
by damix
Tue Aug 07, 2012 12:54 pm
Forum: Python
Topic: Selecting a single object in a context-independent way.
Replies: 2
Views: 1623

Selecting a single object in a context-independent way.

Hi everybody, I'm struggling with context, operators and selection. I would like to write a script that selects a single object, let's say a Cube, even though the current mode may be EDIT on some other object, let's say Cube.001. If you could provide the code to do so it would be great. I did two ex...
by damix
Tue Jul 24, 2012 4:41 pm
Forum: Python
Topic: Applying modifier in Python, creating a new mesh.
Replies: 1
Views: 1727

Applying modifier in Python, creating a new mesh.

Hi everybody. Let's say I have a bpy.types.Object containing a bpy.types.Mesh data field; how can I apply one of the modifiers associated with the object, in order to obtain a NEW bpy.types.Mesh, possibly contained within a NEW bpy.types.Object, thus leaving the original scene unchaged? I'm interest...
by damix
Sat Jun 16, 2012 10:42 am
Forum: Rendering
Topic: Render negative colors
Replies: 0
Views: 1014

Render negative colors

Hi everybody I was wondering whether it is possible to render negative values in Blender. I spent a bit of time googling around and searching on blenderartists.org and I see that a few people had struggled with this. I have a scene setup in which, using nodes, I connected a Geometry Global pin to an...
by damix
Sun May 27, 2012 12:41 pm
Forum: Interface & Tools
Topic: Assigning multiple images and mode sync in UV/Image Editor.
Replies: 0
Views: 845

Assigning multiple images and mode sync in UV/Image Editor.

This page http://wiki.blender.org/index.php/Doc:2.6/Manual/Textures/Mapping/UV/Applying_Image says: To assign a texture to a face, select desired faces in face selection mode in the UV window. If they are not assigned a texture, the background should be blank. With the face or faces selected, click ...
by damix
Sun May 27, 2012 10:28 am
Forum: User Questions that really belong on blenderartists.org
Topic: Texture paint works fine but looks wrong - Blender 2.63.0
Replies: 2
Views: 5520

Texture paint works fine but looks wrong - Blender 2.63.0

Hi everybody, i have a problem with the texture paint tool. I unwrapped a model, selected a single new 4096 x 4069 image for all the faces and switched to texture paint and viewport shading texture. The mesh at this point looks black because the image is new and it is completely black. I try to pain...