Breaking changes for Grease Pencil in 4.3 not containing bpy.ops.object.grease_pencil_add #89

Open
opened 2024-11-27 17:14:05 +01:00 by Gorgious · 3 comments

Page Information
Permanent Link

Short description of error
In 4.3 the operator to add a grease pencil object is bpy.ops.object.grease_pencil_add, a breaking change from 4.2 where it was bpy.ops.object.gpencil_add. It is not documented in this page that is supposed to cover all breaking changes to the API.

**Page Information** [Permanent Link](https://developer.blender.org/docs/release_notes/4.3/grease_pencil_migration/#python-api) **Short description of error** In 4.3 the operator to add a grease pencil object is `bpy.ops.object.grease_pencil_add`, a breaking change from 4.2 where it was `bpy.ops.object.gpencil_add`. It is not documented in this page that is supposed to cover all breaking changes to the API.
Author

Ups sorry I think I found the relevant paragraph. https://developer.blender.org/docs/release_notes/4.3/grease_pencil_migration/#operators

However may I suggest adding this case, too ? It is not an operator in the form bpy.ops.gpencil.*

Ups sorry I think I found the relevant paragraph. https://developer.blender.org/docs/release_notes/4.3/grease_pencil_migration/#operators However may I suggest adding this case, too ? It is not an operator in the form `bpy.ops.gpencil.*`
Author

BTW the Lineart modifier type (GP_LINEART in 4.2) became LINEART, not GREASE_PENCIL_LINEART contradicting https://developer.blender.org/docs/release_notes/4.3/grease_pencil_migration/#modifiers

BTW the Lineart modifier type (`GP_LINEART` in 4.2) became `LINEART`, not `GREASE_PENCIL_LINEART` contradicting https://developer.blender.org/docs/release_notes/4.3/grease_pencil_migration/#modifiers
Member
CC @filedescriptor
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 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-developer-docs#89
No description provided.