Skip to content

Blender 5.0: Python API

Breaking Changes

GPU

  • Remove deprecated BGL API (decd88f67e)
  • Remove creating shaders directly from GLSL source files (11063b5b90)

Render

  • EEVEE's render engine identifier was changed from BLENDER_EEVEE_NEXT to BLENDER_EEVEE. (4fe75da973)
  • scene.eevee.gtao_distance has been moved to view layer and renamed to view_layer.eevee.ambient_occlusion_distance. (1c29a2e2e5)
  • SceneEEVEE properties gtao_quality, use_gtao has been removed (they did nothing since 4.2). (1c29a2e2e5)

Paint

  • Brush type enum property name has changed from being prefixed with _tool to _brush_type (e.g. brush.sculpt_tool becomes brush.sculpt_brush_type). (ab3c129dd9)

Image

  • ImageTexture properties filter_type, use_mipmap, use_mipmap_gauss, filter_lightprobes, filter_eccentricity, use_filter_size_min have been removed (they did nothing since 2.80). (PR#139978)

Assets

  • context.active_file isn't available in the asset shelf anymore. Use context.asset instead. (7cd26d37ea)
  • bpy.types.AssetHandle was removed. Use AssetRepresentation instead. (85878cf541)
  • UILayout.template_asset_view() was removed. Its been superseded by the asset shelf (ae9ca35e3b)

Theme

  • The following per-editor theme properties have been removed:
    • navigation_bar, execution_buts. (dd43eae0d3)
    • tab_active, tab_inactive, tab_outline. They follow regular tab widget colors now. (e8735c3203)
    • panelcolors, including header, back, sub_back. Replaced by global styling: panel_header, panel_back, panel_sub_back. (7818082d02)

Nodes

  • Deprecated compositor nodes were removed. (#140355)
  • Deprecated combine and separate nodes were removed. (#135376)
  • Point density texture node was removed. (#140292)

Deprecation

GPU

  • DEPTH24_STENCIL8 and DEPTH_COMPONENT24 are now deprecated. When used they will use depth32f variants (#140644)
  • UINT_24_8 datatype are now deprecated. When used consider using FLOAT. (#140715)