Skip to main content

All Questions

Tagged with
1 vote
1 answer
281 views

Why does bpy.ops.view3d.view_axis not work in View 3d context?

I'm on Blender 3.6 where the old way to override context is deprecated. I know that some bpy.ops commands need to be run in a certain context. I'm fairly certain ...
Harry McKenzie's user avatar
6 votes
1 answer
232 views

Creating Curves at the Joints of Objects

It is necessary to create a weld for the tank, for this I needed to create curves in the joint area using Python, then put welds in the curve. I know how to create curves manually, but there are 990 ...
Владик Кузьмин's user avatar
0 votes
1 answer
1k views

toggle Object Mode <-> Pose Mode by script code

I want to toggle Object Mode to Pose Mode by script code, because I usually run blender in Object Mode but sometimes I need to add some keyframes while I run blender. that is why I want to toggle ...
DeerWorld's user avatar
5 votes
2 answers
4k views

'Context is incorrect' error when using 'bpy.ops.object.mode_set(mode='OBJECT')' if I'm already in object mode

I'm trying to do things that only work in object mode. This gives me three choices: I can hope I'm in object mode, and my script will raise an error if I'm not. I can hope I'm in pose mode (or some ...
DanielLC's user avatar
  • 259
0 votes
1 answer
103 views

How to find out which modes (object, edit, weight paint, pose etc) is activated using Blender's Python API?

There are buttons for switching to object mode, edit mode, pose mode and others. How to make sure which of these modes is active using Blender's Python API? Any information would help! Preferably with ...
Nembus's user avatar
  • 91
1 vote
1 answer
467 views

Python: How to select one 'BoolVectorProperty' value at a time unless 'shift' key is held

I am trying to overwrite the bpy.ops.object.move_to_layer operator in Blender so that I can move other objects when the selected objects are moved. When I try to ...
Christopher Gearhart's user avatar