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

3 votes
1 answer
27 views

How to Display Information on the Status Bar Using the Blender Python API? [duplicate]

I want to display some information on the Status Bar (at the bottom left corner of the Blender interface). How can I do that using the Blender Python API?
Sudam Patil's user avatar
0 votes
0 answers
10 views

sculpting mode: how to set visibility area (inside/outside) with python code

In practice, when we use boxhide in sculpt mode to crop some part of the object. We can set the visibility area to show outside object or inside object (show in the red circle). But, in coding, when ...
Ritipong Wongkhuenkaew's user avatar
1 vote
0 answers
18 views

Getting the Default Value of a Shader Node's Input Socket

Is there a way to get the default value of a shader node's input socket? For example, in Blender 4.0, when a Principled BSDF node is added, its Roughness input socket has an initial value of $0.5$, ...
Tsybe's user avatar
  • 663
2 votes
1 answer
48 views

How to Set All Mesh Objects in a Scene to Edit Mode Using the Blender Python API?

There is a feature requirement to set all objects in Edit Mode. Is there any way to set every object in the scene to Edit Mode using the Blender Python API? Added a snapshot for reference, showing the ...
Sudam Patil's user avatar
0 votes
0 answers
13 views

modeling a tree by script with sapling tree

I want to model a tree using sapling tree with Python script,by using the UI it is time consuming and I need to model multiple trees with different parameters. This is what I have currently but it is ...
negar's user avatar
  • 1
1 vote
0 answers
20 views

Updating body.text of a text object during animation works in scripting tab, but not when reopening .blend file

I'm trying to animate a Text object in Blender by dynamically changing its body.text value during the animation. When I run the script manually from the Scripting tab, it works perfectly and updates ...
mirit's user avatar
  • 11
0 votes
0 answers
20 views

Buttermax Website : Can you help me to figure out what's encoded in that texture?

I was exploring the ButterMax website and tearing apart that incredibly cool trick they put on their hero section. They use a sprite sheet to mimic a 3D object's rotation. It's using GLSL for the ...
Arthur Cloche's user avatar
3 votes
1 answer
99 views

How to select objects by vertex count RANGE?

What would be the Python script to select objects by vertex count range?
user45026's user avatar
0 votes
0 answers
18 views

How do I set and keyframe the scale of an object for all actions in the action editor to my preferred value at once?

I have some actions that each contains specific animation data. The object has the same values (x, y, z are 0.01) for its scale property throughout all the actions. As for the frame range, some of the ...
Ricardo's user avatar
  • 25
0 votes
0 answers
18 views

When adding speakers into my scene with scripting the audio doesn't play and doesn't create an nla soundTrack

The audio does work when I create the speakers manually, so I know it is not a general audio error I have also tried to manually add an NLA track, but I could not find how to connect it to the audio ...
Crazy Monkey's user avatar
1 vote
2 answers
37 views

How to Set Grease Pencil Stroke Thickness via Python?

How can I set the thickness (like pressing Alt+S) of a specific stroke via Python in Blender 4.4 or is this even possible? For example if I get the stroke: ...
Harry McKenzie's user avatar
  • 15.9k
0 votes
0 answers
60 views

How to filter file paths when using a UIList held in a CollectionProperty

I have a UIList consisting of file paths, stored in a CollectionProperty. These files need to be of a certain type and need to be located in a particular folder. So far, I do this check in the script ...
raetia's user avatar
  • 1
0 votes
0 answers
10 views

Gizmos do not work well when updating 3D Viewport constantly via addon

I have an addon that works by taking de scene camera transforms and other properties from a selected view 3D and replicating them in other opened view 3D in the same Window. for that to work in real ...
Robert Kezives's user avatar
1 vote
1 answer
18 views

How can I create and apply a boolean modifier with a collection operand using python?

I am trying to apply a Boolean subtract with a collection of objects through coding. The final boolean application isnt working though. How can you make it apply with all items in the collection? I ...
B F's user avatar
  • 13
0 votes
0 answers
10 views

Compositor - Reading Mean value programatically

I've got a project with the following Compositor setup: An image is inputted into a Levels Node Using Node Wrangler, I open the Mean output in the Image Viewer I hold right-click on the greyscale ...
KitOaken's user avatar
  • 107

15 30 50 per page
1
2 3 4 5
441