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).

Filter by
Sorted by
Tagged with
1 vote
1 answer
66 views

I had a complex code, which failed. To test things out I simplified it to this: ...
Yaroslav_A's user avatar
2 votes
1 answer
58 views

I have a FloatVectorProperty that stores a normal. I'd like to visualize and make it editable with an editor similar to the "Light Direction" available in ...
Ray's user avatar
  • 892
0 votes
0 answers
50 views

When manually assigning vertices to a Vertex Group, I must be in Edit Mode. However, when attempting to automate this or do the same operation via Python, Blender throws an error unless I switch to ...
Megan Love's user avatar
  • 1,274
0 votes
1 answer
42 views

The quaternion rotations on this bone (Bip01 Non Accum) is messed up, and they need to be flipped. All the keyframes from 532 to 592 need to have their quat rotations flipped and inserted as new ...
stickman23's user avatar
0 votes
0 answers
47 views

i usually have to merge a lot of weights to make them work on a game and i am looking into ways to automate it by just changing the bone names in a script, so far after googling for hours i have found ...
desktop's user avatar
1 vote
1 answer
47 views

How to set Viewport Shading Wire Color to Object via Python? When I right click on the Object button And do Copy Full Data Path, it gives me: ...
Megan Love's user avatar
  • 1,274
0 votes
1 answer
112 views

I am trying to create an automated railroad track system in which I can place a railroad track via a curve, and then easily adjust it by moving the curve points. I already have most of what I need, I ...
Globin347's user avatar
  • 103
0 votes
0 answers
49 views

I'm using blender 4.0.2, my addons are all installed on the local disk C: But I want to move for my local disk E: How do I do this? I've tried installing manually and it's always installed on the ...
Vinicius Estevão's user avatar
1 vote
0 answers
76 views

I've managed to create a window in Blender full of controls, however the only issue is the window closes if I click outside it. I need to to remain on screen until a 'close' button is clicked. My ...
Anthony Lewis's user avatar
0 votes
0 answers
35 views

I am able to draw popover menu at header section by appending/prepending. but I want to draw it in existing controls of blender like viewport shading as highlighted in red in below screenshot. The ...
Sudam Patil's user avatar
0 votes
0 answers
20 views

I am trying to write a baking script that takes my Shrinkwrap modifier and applies it to local space before my armature modifier. I have the world space point, the world space point before the ...
Rigging Wierdo's user avatar
0 votes
2 answers
56 views

I'm trying to execute automatic actions after an addon starts. When starting test addon with Visual Studio Code (VSCode) and including the bl_info header in my ...
Harry McKenzie's user avatar
  • 17.7k
4 votes
2 answers
230 views

I have some custom attributes created via python like so: mesh.attributes.new(name="jbeam_node_props", type="STRING", domain="POINT") ...
Megan Love's user avatar
  • 1,274
0 votes
0 answers
19 views

Let say I have an Operator.bl_idname=download.image with url: StringProperty(), I am drawing this operator in a ...
Karan's user avatar
  • 2,748
1 vote
1 answer
26 views

What is the purpose of the cursor parameter in bpy.ops.screen.area_split()? I've experimented with various values, but nothing ...
clankill3r's user avatar
  • 1,395
2 votes
1 answer
110 views

I want to be able to scale an object with respect to another object. In my example here I have a circle mesh that I want to scale to the sphere (target object that can be any shape). I want to be able ...
Qwertymama's user avatar
4 votes
1 answer
70 views

I am trying to remove the unconnected sockets of Group Output node using python, I tried this - ...
Rakesh choudhary's user avatar
0 votes
1 answer
94 views

How can I twist a bone past 180 degrees without this happening? the issue isnt really the bone, but the vertices in the middle not really knowing how to connect to the each end of the mesh. edit: ...
spatialed's user avatar
  • 109
0 votes
1 answer
28 views

I'm writing a script to export assets with custom previews. The script works perfectly for objects, but collections show no previews. The preview data appears to be missing in collection assets. ...
Dian's user avatar
  • 1
3 votes
0 answers
44 views

Is there a way to customize the export button label in the File Dialog? Currently, the button always uses the bl_label of the operator, but I’d like to set a ...
Harry McKenzie's user avatar
  • 17.7k
0 votes
0 answers
10 views

Hi, I am new to Blender, i was wondering how I could integrate this in my 3D volume brace model. (see pictures). I tried using a lattice, then getting it over the curvature and then shrinkwrapping it. ...
mohamed benbrika's user avatar
0 votes
1 answer
44 views

I'm working on a project where I need to automate some rigging tasks, and I've encountered a challenge. I have a character with a Rigify-generated armature, and I want to attach a 3D object (such as a ...
Omar Yehia's user avatar
0 votes
1 answer
88 views

A registered script will run with Blender 4.1 However, the same does not happen with Blender 4.3. When I launch it, nothing happens. I'm using the portable sandbox version of Blender 4.3, with the ...
Young Gilgamesh's user avatar
0 votes
0 answers
25 views

I've been working on this for several days, but haven't found any solutions. Please help me out I want two images per render scene. ordinary color rendered image only page masked image(Using Material ...
cosmoswt's user avatar
0 votes
0 answers
15 views

I am kind of new to blender. I am trying to create a L shaped pipe with python script. what I want is: My gpt generated code is this: ...
nelson's user avatar
  • 1
4 votes
1 answer
81 views

I added a small play button and a frame_current display in the top bar. The issue is that the frame_current only updates when I ...
clankill3r's user avatar
  • 1,395
0 votes
0 answers
19 views

I want to all bake hair dynamics. ...
김도현's user avatar
1 vote
0 answers
25 views

The following code spins (or rotates and extrudes) a square (or flattened cube). The last face is not present, and I am not clear how best to access the vertices to make a call to bm.faces.new() (...
Blender Nube's user avatar
0 votes
0 answers
18 views

how can i get all of the gpus in the system and enable gpu rendering if it is a amd gpu use hip if it is a nvidia gpu use opeix this is why flamenco i have some computer with amd and some with nvidia ...
trapslover420's user avatar
0 votes
0 answers
31 views

I'm trying to perform a loopcut in script, but I am unable to get the loop to cut between the desired edges. I must be misunderstanding how loopcuts work because my script does not do anything, but ...
ModernEraCaveman's user avatar
2 votes
0 answers
83 views

I can't figure out how to view the DEBUG reports generated by calling self.report({'DEBUG'}, 'DEBUG') in an operator. Steps to reproduce: Launch blender with the ...
Shantanu Aryan's user avatar
1 vote
0 answers
31 views

i'm trying to add a small operator button, or property into one of the modifier panels, has anyone experience in doing so? Is it even possible at all? (rough example) I just can't seem to get it to ...
Chris's user avatar
  • 1,090
0 votes
0 answers
38 views

I'm working on an add-on that takes a node I selected and automatically appends it to a target file, where all the node trees will be stored permanently. I'm currently using, ...
Molokwu Denis's user avatar
4 votes
1 answer
118 views

I have a blender 3.6.5 version. As I have 100s of files with compress enabled I need a script to disable the compress option while doing a save as. In the info panel the operator I can see ...
viki's user avatar
  • 107
1 vote
1 answer
34 views

I created a cube that moves every 10 frames. I’m trying to capture an image from the camera at each step. However, all the rendered images are based on the first frame. Here is my Python code: ...
user1443858's user avatar
3 votes
0 answers
55 views

When you create a collection manually, you can drag it around, but I'm not sure what the Python command for this is. I tried: ...
Harry McKenzie's user avatar
  • 17.7k
0 votes
0 answers
26 views

I have an operator that creates bones in an armature, where each bone's tail points toward a random vertex on a selected target mesh object. The operator works as expected, and I can adjust the number ...
Megan Love's user avatar
  • 1,274
0 votes
1 answer
128 views

I have a bpy.types.Panel where I have two buttons. The first button is 'test render' and second is 'final render'. I'd basically want to call the same operator class for both these buttons just that ...
Qwertymama's user avatar
0 votes
1 answer
115 views

I'm running the following code as part of addon in the __init__.py file. I'm trying to remove a handler that I added to ...
Megan Love's user avatar
  • 1,274
0 votes
0 answers
48 views

I'm trying to use custom icons, but I noticed that my imported icons appear very pixelated. Here is a comparison between the default Blender icon and the same SVG icon after importing it. Any idea of ...
Tsybe's user avatar
  • 673
0 votes
0 answers
27 views

I have a small Geometry Node network I'm using to generate some spheres arranged in a pattern (a larger sphere). I have a node that I can use to set the number of spheres to make. I would like to be ...
easythrees's user avatar
2 votes
2 answers
123 views

400+ materials in the shader editor currently have approx. 3 duplicates from running another script multiple times. The current script is unsuccessful. ...
The Vision Tunnel's user avatar
2 votes
1 answer
113 views

I want to be able to determine the value of the "automatically pack resources" option in blender through script. Right now the only thing I can do (to my knowledge) is ...
Qwertymama's user avatar
2 votes
1 answer
54 views

When I create an armature with 1 bone and then press E on one end, I can extrude to form another connected bone. But when I try do do the same via Python, the bones are not connected: ...
Megan Love's user avatar
  • 1,274
0 votes
0 answers
35 views

I'm trying to get my add-on preferences from external json Starting from bl_label and bl_category in order to TD personalize the visible "name" of the addon, not the real one. But I couldn't ...
Adam Sullastres's user avatar
1 vote
0 answers
86 views

I used to be able to (ctrl shift LMB), and the node I clicked on's output would go to a viewer node for previewing. If I (ctrl shift LMB) again, it would cycle through the other node outputs. Now that ...
Hank The Tank's user avatar
3 votes
2 answers
243 views

I have a list of names names = a1, a2, a3, a4 I need to rename objects in my scene so they have names from the list This is what I was trying to do but all my ...
Nikita Prokhorenko's user avatar
0 votes
0 answers
30 views

I'm trying to make a script to copy all the MeasureIt informations contained in one obj into another one ( they are twins ). In the following simple example file you see 2 columns. The first one with ...
Carlo Cogni 's user avatar
6 votes
3 answers
702 views

I have a requirement for a parent-child relationship in Blender. Based on input received from the UI, I am changing the parent’s orientation. However, this also modifies the child’s orientation. How ...
Sudam Patil's user avatar
1 vote
0 answers
19 views

is there a way to add 2 arrow gizmo in the active face aligning to the normal x, y-axis of the face that can control the UV position? i figured out how to manipulate uv in viewport only the gizmo is ...
Amal David's user avatar