Get the Region of a Panel from its draw call

Hello! Can I get the region (specifically the View 3D where it exists) of a Panel from its draw method?

I have tried context.region and context.region_data, but neither return the View 3D.

Thank you!

Not sure what you’re asking- View 3D is an area, not a region, so you would never get View 3D from it. Have you tried context.area?

1 Like

Thank you very much for the reply. I was just going to add to this thread that I’ve found it (you were right about context.area!):

region = context.area.spaces[0].region_3d