Ummm. OK. Would someone explain this to me. I’m trying to change mode to edit strokes, bpy.ops.object.mode_set(mode=‘GPENCIL_EDIT’). It tells me GPENCIL_EDIT is not an option and I’m looking right at it. How do I change to GPENCIL_EDIT using python.
best thing I can tell ya is create a grease pencil stroke on object and run the code. It says that GPENCIL_ EDIT isn’t an option for mode set ,but yet you can toggle to it. Grease pencil stroke is set to object and surface if that matters.
The edit mode for Grease Pencil is a bit of a hack, since you can’t actually set that particular mode value on any particular object and expect it to keep working when you select another object.
As AFWS #6 mentions, the only really reliable way is to use