Skip to main content

New answers tagged

1 vote
Accepted

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

You can use the built-in Decimal module to precisely round your decimal values to a desired precision. ...
Jakemoyo's user avatar
  • 8,665
1 vote

How can I set render settings using bpy?

Using the Info editor to know which commands are being run can be a way to do this, but unfortunately, unlike Maya, it doesn't register everything, and sometimes incorectly (Maya's is more like a log ...
Lauloque's user avatar
  • 23k
1 vote
Accepted

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

here's autocomplete from the console, showing the new() method: ...
james_t's user avatar
  • 6,224
-1 votes

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

bpy.types.PoseBoneConstraints.new is as pythonic as it gets. Abstractly speaking bpy.types.bpy_prop_collection is like a base ...
unwave's user avatar
  • 5,461
2 votes
Accepted

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

The progress-driven external popup updating is underdeveloped. It can have bugs and requires hacks. The region the popups belong to was exposed in 4.2. You have to use ...
unwave's user avatar
  • 5,461
0 votes

How to get a menu with a list of scenes (for Pie Menu Editor, preferably)

I needed this too so I wrote a script. Put it in your startup folder and then give it a hotkey with wm.call.menu ...
hamousTruck's user avatar
2 votes
Accepted

Problem with getting a current context inside a modal operator

try this: ...
Chris's user avatar
  • 63.5k
0 votes

Some objects in a collection are None

It looks like it's unsafe to set hide_render = True on an object in the middle of an iteration over shields.all_objects. (This ...
K. A. Buhr's user avatar
  • 6,091
0 votes

Using 'ops.transform' in edit mesh

When scaling meshes with "individual origins", the individual origins are made on each mesh islands (clusters of connected components). You seem to be surprised that Python seems to still ...
Lauloque's user avatar
  • 23k
1 vote
Accepted

Using 'ops.transform' in edit mesh

It needs to be called in a View 3D context. ...
unwave's user avatar
  • 5,461
1 vote

Is there an event in Python API that would fire when xray is toggled?

First of all, it wasn't a problem. I had MACHIN3Tools installed and this settings enabled: Default Blender's behaviour is to keep x-ray on while switching between object and edit modes. But just to ...
Aleksandr Motsjonov's user avatar
2 votes

Connect parent bone tail to child head

In recent years blender has made .bones read only, requiring .edit_bones to set position. Expanding on the code by @sezanzeb, this will also connect any children after the adjustment, so the parent ...
RichardULZ's user avatar

Top 50 recent answers are included