Reference/Release Notes/2.93/Python API
Blender 2.93: Python API
Python was upgraded to version 3.9.1.
bgl module will be deprecated in Blender 3.0, in preparation of future Vulkan support. Add-ons should switch to using the
gpu module, so that they will work with both OpenGL and Vulkan.
statesub-module for changing drawing state.
texturesub-module, including a function create textures from image datablocks.
RenderEngine.bl_use_custom_freestyleoption. By default this is disabled, and Freestyle rendering will be done by Eevee. If enabled, the render engine will be called to render the Freestyle geometry. (1428544528)
to_curvemethod in Object ID. The method is analogous to
to_meshand can be used to get the splines representing a text object or to get the splines after spline modifiers are applied. (f2c0bbed1c)
BlendFile.temp_datamethod, providing a context manager to temporarily load blend file data without linking/appending it into the current file (9e09214979).
- UI: Add support for
bl_descriptionand python doc-strings for panel classes. (8971018eb6)
- UTF8 is now the default encoding on all platforms, matching the behavior of running
python -X utf8. See PEP-540 (df135b74fc).
- Remove support for non-annotation properties in classes as this was only enabled while porting scripts to 2.8x API (afa5da9ce0)
deformparameter of the Bmesh
from_objectmethod is now deprecated, always assumed to be True, and will be removed in version 3.0. (4b0871af87)
- The intermediate representation of
bpy.props, typically defined in a classes annotations before registration is now using a new type
bpy.props._PropertyDeferred. While this is not considered part of the stable API, some scripts depended on this (c44c611c6d)
bpy.ops.mesh.primitive_grid_addthe resulting subdivision levels has been changed by n+1 (rB4d3cdb32).