Accessing the pivot point type in Blender 2.8 Python API
The “pivot_point” property from Blender 2.7
1 2 |
bpy.context.area.spaces[0].pivot_point # 'BOUNDING_BOX_CENTER': |
in Blender 2.8 API moved to:
1 2 |
bpy.context.scene.tool_settings.transform_pivot_point # 'MEDIAN_POINT' |
Blender add-on: BIS v. 1.6.3.
BIS (Blender Interplanety Storage) updated to v.1.6.3.
- Updated according to Blender API changes 2019.03.06.
use_drag_immediately property in Blender 2.8 Python API
The “use_drag_immediately” property from Blender 2.7
1 |
bpy.context.preferences.edit.use_drag_immediately |
in Blender 2.8 API moved to
1 2 |
bpy.context.preferences.inputs.use_drag_immediately # True |
BIS – View library
On the BlS (Blender Interplanety Storage) site all the open library now is available for viewing without creating account and registration. You can view all shared BIS content through the direct link.
Changing the current coordinate system in Blender Python API
In Blender 2.7 the current coordinate system could be changed through the
1 |
bpy.context.space_data.transform_orientation |
property. In Blender 2.8 coordinate system access moved to the scene collection of “TransformOrientatiosSlots” objects. To get or set the current coordinate system the “transform_orientation_slots” collection is used.
1 2 3 4 5 6 7 8 |
bpy.context.window.scene.transform_orientation_slots[0].type # 'GLOBAL' bpy.context.window.scene.transform_orientation_slots[0].type = 'LOCAL' bpy.context.window.scene.transform_orientation_slots[0].type # 'LOCAL' |
Advanced Transform add-on for Blender 2.8
The Advanced Transform add-on is ported for Blender 2.8.
No critical changes to the source code, only adopting for Blender 2.8.
Add-on on the GitHub:
https://github.com/Korchy/advanced_transform
file to download and use – advanced_transform_2_8.py
Fast moving modifiers in the stack
The “shift+r” key combination, which repeats a perfect action, works not only with editing a mesh but also with the Blender interface. For example, with this key shot, we can simply move the modifier in the modifier stack up and down, without hunting the runaway arrows.
Simple rotation around edge
It is difficult to rotate mesh polygons around an edge if this edge is not parallel to the global X, Y, or Z axis — we need to switch to the edge local coordinate system, fix axes, and then rotate polygons about these axes. However, this can be done easier and faster – position the viewport parallel to one of the edges local axis and perform a rotation by simply pressing the “r” key.
To quickly rotate polygons around the edge:
- switch to the “by Active Element” mode,
- select geometry to rotate
- next select the edge, around which you want to rotate the geometry. Selected last it becomes an active element,
- press shift + Num1 (Num3 or Num7) to set the viewport parallel to one of the edge axes,
- rotate geometry by pressing the “r” button.