Skip to main content

Questions tagged [scripting]

Questions concerning scripting in Blender using the Python programming language. Also use this tag for questions about scripting in OSL (Open Shading Language).

16 votes
1 answer
3k views

Access skin modifier radius data

With Skin Modifier, we can "weight" a vertex (in Edit Mode) so that the resulting Skin mesh is bigger or smaller - similar to Curve objects which has "Scale Feather" adjustable. Manually, we can hit ...
Jimmy Gunawan's user avatar
3 votes
1 answer
369 views

How to automate a script execution on import actions?

Basically, I would like a way to let the user select a file to import and then transparently execute a custom script. Most of the time, I use Blender in a work flow. When I do some changes on my ...
matali's user avatar
  • 2,811
8 votes
1 answer
7k views

How can I delete mesh parts with python?

Suppose I have identified or can identifiy some meshparts I no longer want in my mesh and want to delete them, how would I do it? I know that bmesh.ops.delete exists, I just don't know how to use it, ...
B Newmark's user avatar
  • 1,240
7 votes
1 answer
4k views

How to iterate over custom properties?

I have a number of custom string properties that I added to my scene with: ...
Ray Mairlot's user avatar
  • 29.3k
8 votes
1 answer
535 views

How to rig a rotary counter?

I would like to know if is possible to create a simple python script to rotate these dials. What I want is something like this: The first ring from the left is rotated around the ...
Utas's user avatar
  • 844
11 votes
2 answers
3k views

How to change icon in Add Object menu?

It has always bugged me that Blender add-ons (in this case the Sapling add-on for generating trees) have a wall socket as their icon in the Add menu, instead of something more custom. I would like to ...
Gwen's user avatar
  • 11.6k
8 votes
1 answer
2k views

Getting hair vertices via python

We can convert hair into 3D editable objects via the modifier tab, this means there must be an API to get the hair vertices instantly from python. Can you explain it and all it's parameters and ...
migomigo's user avatar
  • 143
12 votes
2 answers
3k views

Scripting metaballs with negative influence

I'm generating metaballs with a python script, and I need to be able to toggle the negative option for some of the metaballs. (Edit: ...
Cody Reisdorf's user avatar
30 votes
2 answers
64k views

How can I get vertex positions from a mesh?

I want to read the vertex x and y coordinates with a script or a function. How can I do that? The MeshVertex appears to have ...
B Newmark's user avatar
  • 1,240
16 votes
3 answers
14k views

How to get world-space matrix of any pose bone?

Is there a command for getting world-space matrix of pose bones, same as obj.matrix_world for objects? I found pose_bone.matrix, ...
Roman Volodin's user avatar
7 votes
1 answer
1k views

Export bullet physics with the Y and Z axis swapped

I'm using the script example used in Blender's physics documentation: import PhysicsConstraints PhysicsConstraints.exportBulletFile("Physics.bullet") The problem ...
rraallvv's user avatar
  • 4,561
22 votes
3 answers
22k views

Blender rendering automation (build script)

I would like to automate the proccess of rendering images (sprites). What I want to do is to render an image of the same model with different textures, ideally the texture filename would be passed as ...
eyevan's user avatar
  • 323
4 votes
1 answer
403 views

How to make a menu like the Sculpt Brush/MatCap menu with Python?

I'd like to make a menu with images like the sculpt brush menu and MatCap menu in Blender with Python. Can anybody walk me through it? Thanks.
user683's user avatar
  • 43
24 votes
2 answers
6k views

Blender UI Multithreading Progressbar

The following question might've been asked several times, but I've found no satisfactory answer. Short question: How can I show progress of background task in Blender UI? Explanation: I have a ...
mg007's user avatar
  • 821
7 votes
2 answers
1k views

Set existing animation start frame with script

I have an object, which has two keyframes to make a short animation. I have a script which duplicates this object and its animation and changes the start frame of the animation. I currently have this ...
user avatar

15 30 50 per page