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
0 votes
0 answers
58 views

Tried using wiggle 2 after not using it for a couple of long months and now I keep getting this report "blender bone object has no attribute select" i thought it was because i was on a newer ...
That 1 furry guy's user avatar
3 votes
2 answers
175 views

I am experimenting with the Import CSV node in Blender. I have Blender open alongside a text editor where I edit my CSV file, and I would like an easy way for the new data to update automatically in ...
Alex's user avatar
  • 41
0 votes
0 answers
49 views

In Blender, I define a tool in sculpt mode and set a timer: if the tool is activated, the draw brush will be accessed. But when I click leftmouse, it is binded with tweak operator, I want to know why &...
hutianyi's user avatar
3 votes
1 answer
43 views

I'm making an addon for Blender and I want to create a new Panel in the mesh properties. I managed to do it, but it appears on every object type: Cameras, lights, empties, etc. This is because the <...
Aeven dev's user avatar
3 votes
1 answer
179 views

In top-right part of 3D Viewport, the Navigation Gizmo has multiple components: Axis gizmo View gizmos I have a custom operator which meant to be executed only when mouse pointer is above VIEW_3D <...
Yaroslav_A's user avatar
3 votes
1 answer
84 views

I'm making an addon for Blender and I want some of the functionality to appear in a menu next to the View, Select, Add, and Object menu in Object Mode. Something that looks like this: I know I can ...
Aeven dev's user avatar
3 votes
1 answer
88 views

In Blender, in the Material tab, there are different properties such as Base Color (1), Metallic (2), etc. I need to find a way to determine which property the mouse pointer is currently hovering over....
Yaroslav_A's user avatar
0 votes
1 answer
27 views

My goal is to be able to do this without manually opening Blender. I'm managing a render farm and I've noticed that some machines render faster. I found out it is because they have GPUs enabled with ...
AlexM's user avatar
  • 356
1 vote
1 answer
73 views

I have an MP4 file that I want to add as a new video strip to the Video Sequencer Editor using an addon or a script. The following Blender API code adds the video, but the playback speed becomes ...
Ambrus Attila's user avatar
0 votes
1 answer
44 views

In Texture Paint mode there are two color swatches in the top left corner: If press E above a color swatch – color picker will appear: it's ...
Yaroslav_A's user avatar
0 votes
0 answers
43 views

I want a base. that maintain some parameters, but also updates based on total table length and width. So if table width is 1000mm (sorry for the metric folks) I want the width of the base 600mm and if ...
barhoomo's user avatar
1 vote
1 answer
56 views

I'm making an add-on for the video editor, that pops up blenders text editor in a new window, which allows me to write texts with line breaks, and then (with a sidebar button) copy that text to the ...
Eduardo Isla Venegas's user avatar
1 vote
1 answer
46 views

I have some code that generates a curve: ...
Midas's user avatar
  • 179
3 votes
0 answers
44 views

I'm writing a tiny add-on that gives me some extra options in both the video sequencer sidebar and text editor sidebar, but only if the active strip is a text strip. It works just as intended in the ...
Eduardo Isla Venegas's user avatar
3 votes
1 answer
156 views

I'm trying to work with action slots through python scripts and I need to understand how they work, really. The docs say action slots allow an action to animate multiple objects--so far so good. I can ...
Bad Dog's user avatar
  • 33
5 votes
1 answer
188 views

Does anybody knows if there's a way to invert the reliefs in the sphere without distorting it?
Gustavo Silva's user avatar
0 votes
1 answer
48 views

I am writing an addon that creates textures using Blender's gpu api. I want to be able to distribute thousands of 2D cards with textures on them and have controls ...
Kevin's user avatar
  • 11
1 vote
1 answer
75 views

Is it possible to create this entire decimate process in areas where the camera can't see, as in the image, but through a script? Also creating the vertex group and the decimate modifier already ...
bilo's user avatar
  • 261
0 votes
1 answer
67 views

How to create a new image texture using python scripting ? I tried this : ...
zeekcarrara34's user avatar
1 vote
0 answers
51 views

I'm writing a script that exports a mesh from Blender to a game format. The format stores, per vertex, their normals, tangents, and what i assume is a bitangent sign. The latter is a single signed ...
Moff's user avatar
  • 41
0 votes
0 answers
37 views

I need someone who can help me with finding out a solution how I can make sharp edges to smooth after subtracting an object from a high model scanned by 3D scanner. I don’t want to sculpt those edges ...
James Lee's user avatar
0 votes
0 answers
20 views

I’m working on analyzing soccer kicking motion using mocopi BVH data in Blender. My goal is to extract two joint events: MHE (Maximum Hip Extension) → the timing when the hip joint is most extended ...
平尾泰千's user avatar
0 votes
4 answers
76 views

If I have two lists, each containing an x, y, z, and a radius at that point, how can I make a tapered cylinder connecting the two points, with the radius of the cylinder equal to the specified radius ...
le_chat's user avatar
0 votes
0 answers
30 views

I want to create an addon that allows a user to right-click on an image in the File Browser and set it as the paint brush texture. I managed to get the file path of the image and load it into Blender, ...
Kritik _MB's user avatar
0 votes
1 answer
67 views

I am running baking operation for blender through python script but its taking a lot of time due to update image operations running for same mesh. (total time 23 mins) I need to optimize the process ...
Kaustubh Jha's user avatar
2 votes
0 answers
63 views

In Grease Pencil previous to 3.0, we were able to do: weight = stroke.points.weight_get(vertex_group_index=vertex_group.index, point_index=points_index) In Grease ...
Ommadawn's user avatar
  • 668
0 votes
0 answers
36 views

I am trying to project a plane onto an object I made but the shrink wrap isn't attaching to the right spots and end up clipping through the model. The object and the plane have the same dimensions. ...
B F's user avatar
  • 13
1 vote
0 answers
29 views

I have made an add-on for the visualization of molecular orbitals by students. This add-on is only used in-house and the users have absolutely no experience with Blender. They simply smash buttons in ...
Roy's user avatar
  • 95
2 votes
1 answer
50 views

I'm trying to import models from a video game into Blender. The tools I have to dump the models gives me a rigged-but-unanimated FBX as the main model, and a second file in a custom format that ...
devvoid's user avatar
  • 37
0 votes
0 answers
34 views

I'm trying to copy N times a grease pencil frame and then iterate over their .drawing.strokes for doing some other things. My problem: Right after copying them, ...
Ommadawn's user avatar
  • 668
-3 votes
1 answer
68 views

I want to know how to pass an object as a variable to a function. ...
Ghoul Fool's user avatar
0 votes
0 answers
26 views

I'm working on a simple tool that imports a set of fbx models to be resized on Blender. The first model is the source that the rest of models will be resized to. The first part of the algorithm is to ...
wavesinaroom's user avatar
1 vote
1 answer
58 views

I’m working with Blender and have a particular workflow where I want to make sure that newly created objects are NOT automatically added to a certain target collection, even when that collection is ...
Sudam Patil's user avatar
2 votes
1 answer
106 views

I'm working on a Blender Python add-on/script, and I need to position a light source so that it stays fixed at the top-center of the 3D Viewport, similar to how UI elements behave in screen space. 🎯 ...
Sudam Patil's user avatar
3 votes
1 answer
120 views

I’m encountering an issue while developing a modal operator in Blender where the Middlemouse release event is never received. The operator detects the press event correctly but never gets the release ...
Sudam Patil's user avatar
1 vote
0 answers
42 views

Okay, this one is a little difficult to explain, but I've made a little addon that lets me use a shortcut to set a keyframe. It works pretty good but the only thing that bugs me is that I need to ...
IIBit's user avatar
  • 11
0 votes
1 answer
90 views

I'm creating a popup UI using context.window_manager.invoke_popup() to display real-time progress while downloading content from a remote server. However, the popup only updates when there's mouse ...
Sudam Patil's user avatar
0 votes
0 answers
33 views

I have a geometry node setup with a long running simulation, that takes a good hour to bake. I would love to set up my workflow so that I can automate the process of baking it, then setting off the ...
stib's user avatar
  • 1,183
0 votes
0 answers
25 views

I've been trying to create a script to allow me track the camera in a video in blender. The reason for this is such that I can later add a 3d model in the video. I want to do all of this with scripts. ...
Aplitos's user avatar
2 votes
1 answer
51 views

The following modal operator (after launched from F3) should report the type of left-clicked screen area. *But instead of reporting the type of clicked area - it reports the type of area from which it ...
Yaroslav_A's user avatar
1 vote
1 answer
53 views

I have a collection of objects; I want to render one of them at a time quickly and easily. I wrote a script, and I've pasted below what I currently have: ...
ygl0989's user avatar
  • 13
1 vote
1 answer
88 views

I'm trying to find a way to fetch the active view layer name or render engine via a driver in shader nodes, the idea would be to use this as a way to customize the shader depending on the view layer ...
Lauloque's user avatar
  • 23.6k
0 votes
1 answer
51 views

Is it possible to retrieve this text using Python? Reconstructing it is not an option. The reason is that I need to know whether a Viewer node is active, and this information is not exposed in the ...
clankill3r's user avatar
  • 1,395
0 votes
0 answers
51 views

I have bunch of procedural materials, most of them use multiple nodes grouped together under one custom node, which has input values and a BSDF output. I want to ungroup all of them, as in remove the ...
petr chyla's user avatar
0 votes
0 answers
36 views

I have After Effects ExtendScript (.jsx file that I exported from Google Earth Studio) with camera movement and camera rotation animation. In After Effects camera works correctly, but when I'm trying ...
Alexander Baikalov's user avatar
0 votes
0 answers
34 views

I have 20 different .blend files. Each file contains the same 20 models, each with a unique name like Model01_Master, Model02_Master, and so on. Each of these models uses a Geometry Nodes setup that ...
JiraiyaNoLiya's user avatar
0 votes
0 answers
50 views

I am trying to bake procedural textures. The base colour always bakes as black. All other textures (roughness, metallic, AO and normal) seem to be fine. Strangely even diffuse texture bake worked fine....
petr chyla's user avatar
0 votes
0 answers
21 views

can someone point me in the direction on how to add custom controls in the Rigify menu (n-panel) via the rig-creation-script in the meta-rig. I can't seem to find any scripting guide for Rigify (what ...
hermano's user avatar
  • 159
1 vote
1 answer
21 views

I used UILayout.column_flow(...) and UILayout.operator(...) to arrange buttons horizontally in a panel. These buttons need to ...
tetii's user avatar
  • 2,218
2 votes
1 answer
50 views

In the Outliner, when an object exists in multiple collections, it appears more than once as separate list entries under each collection it belongs to as expected. If I have an object that is the ...
Harry McKenzie's user avatar
  • 17.7k

1
2 3 4 5
134