When only exporting "Selected Frames", we need to read frames from the active grease pencil object. If the active object isn't a grease pencil object, we need to return early and do not export. Co-authored-by: Thomas Dinges <thomasdinges@noreply.localhost> Pull Request: https://projects.blender.org/blender/blender/pulls/142188