Skip to main content

Questions tagged [python]

Python is an interactive, object-oriented programming language. In Blender, it is used as a general-purpose scripting language and to create add-ons to extend Blender's functionality.

Filter by
Sorted by
Tagged with
2 votes
1 answer
29 views

Is there a way to preserve float precision on vertex color attributes?

I am writing a tool that can paint a vertex color, and then can copy and paste it somewhere else. The issue is that when I get the color from the vertex, the float is not exactly the same, causing ...
JuanSalice's user avatar
0 votes
0 answers
18 views

Errors when import 3MF file [closed]

I selected File > Import > 3D Manufacturing Format (.3mf) and the error message popped up: ...
MuYu's user avatar
  • 1
3 votes
0 answers
58 views

Modal Operator Does Not Receive Middlemouse Release Event In 3D View

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

How to retrieve the lighting panel of workbench rendered mode

I simply want the lighting panel for the Workbench Engine to be placed in the N sidebar, and be used in rendered mode with (Studio, Matcap and Flat) types. I wrote an addon with the help of AI but all ...
Crank Head's user avatar
0 votes
2 answers
46 views

How to access PoseBoneConstraints, I.E. How to Pythonically create a bone constraint without an ops call?

I need to use the .new() method of the bpy.types.PoseBoneConstraints class, which says it is returned from the ...
TheLabCat's user avatar
  • 9,104
0 votes
1 answer
59 views

How to force UI redraw in context.window_manager.invoke_popup() for real-time progress updates?

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
30 views

EXCEPTION_ACCESS_VIOLATION When windows close [closed]

So, I've done a fresh install, deleted temp/roaming files, repaired C++, updated drivers. Not sure where I go from here. Everytime a window is closed, i.e preferences, import etc: Blender 4.5.1, ...
Saoirse Quigley's user avatar
0 votes
0 answers
13 views

Trigger parts of my python code when bones local y location is at a particular value

I'm new to the blender API but I'm trying to have parts of my code do something when a bones local y translate value is equal to or less than a particular value. First thought I'd use a code like: <...
Oluwadamilola Fagbowore's user avatar
0 votes
0 answers
14 views

How to walk down through a collection using python [closed]

I am trying to make a player piano roll by using a boolean operator to cut perforations into a series of plane objects, which were generated by the array modifier. I want to walk down through the list ...
John Wash's user avatar
0 votes
0 answers
17 views

I want to create a simple box stroke fill in Blender Grease Pencil 3.0 via Python

I'm trying to created an add-on that imports images directly into the grease pencil layer. Right now I use fill material as an texture and it is proving to be working fine. Next I just want to draw a ...
Goblin in the void's user avatar
0 votes
0 answers
14 views

Motion tracking with python API from script

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
40 views

Problem with getting a current context inside a modal operator

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
33 views

Some objects in a collection are None

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
  • 11
0 votes
2 answers
41 views

Using 'ops.transform' in edit mesh

I want to scale all faces in mesh by individual origins, but it seems that python do not understand that Im want to scale faces, not object (even in EDIT MODE) You ...
Bicukow's user avatar
  • 1,392
1 vote
0 answers
62 views

Cloth simulation for bat wing membrane

I've been trying to use cloth simulation for bat wing membrane. I can apply the sequence of kinematic to a template and the wing membrane will move along. I am using a very small vertex mass to match ...
Yihao Hu's user avatar

15 30 50 per page
1
2 3 4 5
907