Hot answers tagged

7 votes
Accepted

Indent Guideline in Text Editor

An addon is doing that. You can find it here. It seems to work well in 4.0.
lemon's user avatar
  • 53.5k
6 votes
Accepted

Why does this tiny script not work in 4.0?

From version 3.2, context overriding this way is deprecated and is no more available in 4.0. Have a look for instance here and this is also documented in Blender wiki here. What you can do instead is ...
lemon's user avatar
  • 53.5k
5 votes

How to make a light bulb switch with a blender that keeps the touch lit

Add a Store Named Attribute in a simulation zone. I called it status. Store a boolean with the value $1$ on it. The selection, to which this attribute is applied, is driven by a mesh boolean between ...
Leander's user avatar
  • 25.8k
4 votes

Ripping vertices with more than two connected edges

In GN, it can be done as follows: Mark vertices with more than 2 edges (Capture Boolean) Rip all vertices After ripping, move marked vertices towards centres of their edges Weld unmarked vertices ...
Robin Betts's user avatar
  • 74k
2 votes

Python API - access operator's class for builtin operators

No Idea, how to access the class, but if the operator is written in Python, you can find its code. There is a bunch of operators in Blender's installation folder(on Windows they are at ...
Martynas Žiemys's user avatar
2 votes
Accepted

How to view datablock dependency hierarchy?

The script below lists all node groups and their users as a tree inside the console. Each user displays the node group’s occurrences and its name(s) inside the user (so you can do a ctrl+f for the ...
Don Cheadle's user avatar
1 vote

Is it possible to update image texture by using image buffer pointer?

From the source code that Blender Python uses to set image pixels, we can learn a thing or two: The pointer you are sending to the dll refers to an Image. That is ...
Sietse Brouwer's user avatar
1 vote
Accepted

How to get or set UI region scale via bpy?

It is not possible. The Outliner has Data API mode where you can explore it: No scale I'm afraid. You can also find stuff like this using Autocomplete feature in Python console( Tab ): Nothing ...
Martynas Žiemys's user avatar
1 vote

blenderproc quickstart -- urllib.error.HTTPError: HTTP Error 403: Forbidden

You could point it to your own location of Blender: ...
Mona Jalal's user avatar
1 vote

How to Set Selected Edge Bevel Weight in Blender 4.0

Add a bevel and look in the attributes tab for the mesh You can access it by: bpy.context.active_object.data.attributes['bevel_weight_edge'].data[1].value or write ...
Psyonic's user avatar
  • 2,254
1 vote

where is stored the data of the projects?

The "data" of an object can be accessed from Python in several ways, but the most direct way to access the vertices coordinates of the active object is with: ...
Psyonic's user avatar
  • 2,254
1 vote

How to add a driver to a shape key and modify the fcurves through Blender python?

So I figured out how to reference the driver's fcurve to add points through fcurve.keyframe_points.insert(0,0). Please be aware the keyframe_points.insert function doesn't return a proper reference ...
John Smith's user avatar
1 vote
Accepted

Calling view_all() operator from another context is not working specifically on 4.0

Blender dev team added a new API for overriding context some time ago: https://docs.blender.org/api/current/bpy.ops.html#overriding-context Overriding context should be implemented this way, context ...
Crantisz's user avatar
  • 33.6k

Only top scored, non community-wiki answers of a minimum length are eligible