Blender 3.0 (Python API deprecation, updates) #85675

Closed
opened 2021-02-16 02:39:18 +01:00 by Campbell Barton · 21 comments

This task is intended to track breaking changes to be made for Blender 3.0

    • Remove deform argument from BMesh.from_object (already listed as deprecated). ead084b6e1
    • Remove active_base (bpy.context.active_base) 44db4e50b2
All other access to the `Base` structure was removed, it seems this was left in by accident. None of the scripts or add-ons distributed with Blender use this.
    • Remove IDPropertyGroup.iteritems
Rename the current `iteritems` method to `items`. {rB265d97556aa0f0f2a0e4dd7584e3b8573bbddd54}
This was a hang-over from Python 2.x which used both methods for dictionary types, now defaulting to the iterable version in Python 3.0.
    • Remove deprecated wiki_url handling from add-on's bl_info in favor of doc_url. aaa07a3a8f
    • Use keyword only arguments in the C/API, to avoid breaking scripts when changing arguments. (f29a738e23)
  • #84638 (Radius and diameter mixup for primitive spheres)

  • Remove Context.region_data, Use Context.region.data instead (see: 9cfb320208)


Open Topics:

This task is intended to track breaking changes to be made for Blender 3.0 - - [x] Remove `deform` argument from `BMesh.from_object` (already listed as deprecated). ead084b6e1 - - [x] Remove `active_base` (`bpy.context.active_base`) 44db4e50b2 ``` All other access to the `Base` structure was removed, it seems this was left in by accident. None of the scripts or add-ons distributed with Blender use this. ``` - - [x] Remove `IDPropertyGroup.iteritems` ``` Rename the current `iteritems` method to `items`. {rB265d97556aa0f0f2a0e4dd7584e3b8573bbddd54} ``` ``` This was a hang-over from Python 2.x which used both methods for dictionary types, now defaulting to the iterable version in Python 3.0. ``` - - [x] Remove deprecated `wiki_url` handling from add-on's `bl_info` in favor of `doc_url`. aaa07a3a8f - - [x] Use keyword only arguments in the C/API, to avoid breaking scripts when changing arguments. (f29a738e23) - #84638 (Radius and diameter mixup for primitive spheres) - Remove `Context.region_data`, Use `Context.region.data` instead (see: 9cfb320208) ---- ### Open Topics: - blender/blender-addons#80730 (BGL deprecation) (the GPU module needs to be further developed before a decision is made).
Campbell Barton self-assigned this 2021-02-16 02:39:18 +01:00
Author
Owner

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Owner

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Author
Owner

Added subscribers: @mont29, @dr.sybren

Added subscribers: @mont29, @dr.sybren

I would definitively also include the keyword-only change in 3.0...

I would definitively also include the keyword-only change in 3.0...

This issue was referenced by blender/blender-addons@f01d08b7c5

This issue was referenced by blender/blender-addons@f01d08b7c5f7873e0ce8a77b84788e2f6b1ad716

Added subscriber: @Grady

Added subscriber: @Grady

Suggestion for possible 3.0 change:

BMesh operators [bmesh.ops.duplicate ]] and [ https:*docs.blender.org/api/current/bmesh.ops.html#bmesh.ops.split | bmesh.ops.split both have an unimplemented parameter, 'dest', which is meant to provide the option to duplicate or split a section of mesh into another destination bmesh.

Either the destination mesh argument should be implemented (which would be my preferred outcome) or removed since right now it provides no benefit at best and serves to create confusion at worst (especially since the API docs don't mention they aren't implemented, I only discovered it myself recently while writing an addon).

Suggestion for possible 3.0 change: BMesh operators [bmesh.ops.duplicate ]] and [[ https:*docs.blender.org/api/current/bmesh.ops.html#bmesh.ops.split | bmesh.ops.split ](https:*docs.blender.org/api/current/bmesh.ops.html#bmesh.ops.duplicate) both have an unimplemented parameter, **'dest'**, which is meant to provide the option to duplicate or split a section of mesh into another destination bmesh. Either the destination mesh argument should be implemented (which would be my preferred outcome) or removed since right now it provides no benefit at best and serves to create confusion at worst *(especially since the API docs don't mention they aren't implemented, I only discovered it myself recently while writing an addon).*

Added subscriber: @2046411367

Added subscriber: @2046411367
Member

Added subscriber: @EitanSomething

Added subscriber: @EitanSomething
Member

Suggestion for possible 3.0 change: I am willing to implement it

Move bpy.types.MovieClip.use_proxy_custom_directory to bpy.types.MovieClipProxy.use_proxy_custom_directory.

Use_proxy_custom_directory is currently under bpy.types.MovieClip for MovieClipbut for ImageSequenceand MovieSequenceit is under bpy.types.SequenceProxy. This inconsistency makes it difficult to read/write code, which checks sequences in the video sequence editor to see if they are using a custom directory. (example of unnecessarily complex code currently needed D6139)

Suggestion for possible 3.0 change: **I am willing to implement it** Move `bpy.types.MovieClip.use_proxy_custom_directory` to `bpy.types.MovieClipProxy.use_proxy_custom_directory`. Use_proxy_custom_directory is currently under `bpy.types.MovieClip` for **MovieClip**but for **ImageSequence**and **MovieSequence**it is under `bpy.types.SequenceProxy`. This inconsistency makes it difficult to read/write code, which checks sequences in the video sequence editor to see if they are using a custom directory. (example of unnecessarily complex code currently needed [D6139](https://archive.blender.org/developer/D6139))
Author
Owner

Added subscriber: @Sergey

Added subscriber: @Sergey
Author
Owner

@Sergey what do you think of @EitanSomething 's suggestion?

@Sergey what do you think of @EitanSomething 's suggestion?

Sounds good to me.

Sounds good to me.

This issue was referenced by aaa07a3a8f

This issue was referenced by aaa07a3a8f6427a01ef1ffacc0733e82921b0a8a

This issue was referenced by 44db4e50b2

This issue was referenced by 44db4e50b245041ea250bef4e525e658e83403cb

This issue was referenced by ead084b6e1

This issue was referenced by ead084b6e1a05b9bff943660ea104efbed9b845f

Added subscriber: @ckohl_art

Added subscriber: @ckohl_art

Added subscriber: @alisealy

Added subscriber: @alisealy

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

3.0 is released so assuming we can close this.

3.0 is released so assuming we can close this.
Thomas Dinges added this to the 3.0 milestone 2023-02-08 15:59:28 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
10 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#85675
No description provided.