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

0 votes
0 answers
28 views

How can I add a FloatVectorProperty to my addon layout? [duplicate]

How to properly register a FloatVectorProperty? When I do: box.prop(self, "amb_day_color") where ...
Oleg Kivasev's user avatar
1 vote
1 answer
75 views

How to select only deformation bones?

Is there a way to select all bones from the vertex group of the mesh? I have too many overlapping bones that are very tedious to work and some are non-deformer which I wanted to hide and only work ...
Wissam Seaifan's user avatar
1 vote
1 answer
53 views

Can Particle System caches be accessed directly by Geometry Nodes?

My goal is to instantiate objects on the points of a particle system. Right now, my workflow is: tweak the parameters of the particle system export it as an Alembic cache (point cloud?) import it ...
andycepi's user avatar
2 votes
2 answers
26 views

How to read and change value of edge crease in blender 4 via python script (MeshEdge.crease property has been removed)

as MeshEdge.crease property has been removed in blender 4, how can I check and change the value of an edge crease ? I used to do this to check edge crease value and set it to 1 if the value was over 0....
cscholl's user avatar
  • 315
2 votes
1 answer
28 views

Python: canvas-flip action is merged with the next user action in undo history

I wrote a simple add-on to enable canvas flipping in Blender (for Grease Pencil) with a hotkey, as well as a menu button. All it does is multiply the camera's local X scale by -1: ...
Latin1's user avatar
  • 33
0 votes
0 answers
22 views

Is it possible to make a script or GeoNod so that all the empties become children of the vertex where vertex and the same coordinates with empties?

Is it possible to make a script so that all the empties become children of the vertex where vertex and the same coordinates with empties? Its not Hook - need vertex are parenting for Empty. Whether ...
user avatar
0 votes
0 answers
6 views

Alternative to create non-object elements like gizoms

I want to create a dimension like in autocad. So there is the dimension object which is visible and two small points which only appear when I want to edit my dimension. How to create your little ...
André Ruf's user avatar
0 votes
0 answers
30 views

How to customize a cube-shaped gizmo

I'm interested in gizmos. I saw that it was possible to create a custom gizmo, as shown in the gizmo_custom_geometry.py template. I want to try making a cube shaped gizmo. However, this does not ...
André Ruf's user avatar
1 vote
1 answer
27 views

Is it possible to toggle Blender's built-in Boolean command state temporarily by pushing keyboard shortcut?

Is there any way to toggle blender's Boolean command state while pushing keyboard shortcut? I always enable weight paint tool's Restrict mode but sometimes I need to disable it. I would like to ...
Yokomizo's user avatar
  • 415
4 votes
1 answer
128 views

How can I expose Geometry Nodes properties in my addon panel?

I came across this question and learned that I can actually expose properties from the Blender UI in my addon panel. So I was experimenting on exposing properties of modifiers like for example the ...
Harry McKenzie's user avatar
3 votes
1 answer
82 views

How can I pass an object (like a bmesh) to an operator or should I not do that?

I have an operator that creates a certain mesh but I want to keep things modular so I separated each operation into its own operator. Like for example, I have an operator that removes vertices that ...
Spammer's user avatar
  • 446
0 votes
0 answers
12 views

How can I align the object's or 3d cursor X, Y and Z-axis to tracking together with face normal

...
Rabia Islam's user avatar
0 votes
0 answers
18 views

How to determine returned geometry component types by a node group using bpy?

Example: This node group returns a mesh, curve, point cloud, volume and an instance. Is it possible to determine which geometry components are returned by any node group, using python?
00004707's user avatar
1 vote
1 answer
28 views

ENUM_FLAG EnumProperty OverflowError when trying to use 1 << 31 as a flag value

I have an enum.Flag defined as so: ...
Jill Nesbit's user avatar
3 votes
3 answers
288 views

How can I select all edges that form part of a square without a face via python?

I have empty squares (those with exactly 4 edges only) in my 2D mesh and I need to fill them with faces via python but I don't know how to automatically select these edges. Is it possible to select ...
Spammer's user avatar
  • 446

15 30 50 per page
1
4 5
6
7 8
431