Possible to access context.screen.areas within bpy.ops.render.render operator?

I may have asked this before, but I couldn’t find the thread where I might have asked it.

Is it possible to access context.screen.areas within the bpy.ops.render.render operator? For instance, if I’m calling custom operators from within the render operator, those custom operators pass a context to their execute() function. But it’s not a context that allows access to the screen areas. How can I access the screen areas? Is it possible?

Do you define your own bpy.ops.render.render operator ?

This section of the api docs might be helpful. Unfortunately the available options are not explained in detail.

Guessing from the name you might give ‘EXEC_SCREEN’ a try.

Made a quick testto check the context for an operator called from a button in the UI using the option ‘INVOKE_DEFAULT’ if i remember correctly.

The areas are accessible.

Yes, I have created my own render operator. I’ll look into that, thanks!

Made a quick testto check the context for an operator called from a button in the UI using the option ‘INVOKE_DEFAULT’ if i remember correctly.

The areas are accessible.

Yeah, I’ve made operators using buttons in the UI or TOOLS panels, and those do indeed provide a context with screen.areas. But a render operator doesn’t seem to…