New answers tagged python
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.
...
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 ...
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:
...
-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 ...
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 ...
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
...
2
votes
Accepted
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 ...
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 ...
1
vote
Accepted
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 ...
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 ...
Top 50 recent answers are included
Related Tags
python × 13600scripting × 4939
add-on × 1260
game-engine × 665
interface × 651
animation × 646
mesh × 626
rendering × 494
objects × 451
operator × 437
properties × 424
materials × 401
node-editor × 390
bmesh × 313
modifiers × 284
transforms × 268
vertices × 260
export × 259
3d-view × 243
camera × 243
drivers × 241
armature × 233
import × 232
image × 230
uv × 228