Accessing grease pencil point data after modifier operation

Hi everyone,

I’d like to access point data of a grease pencil after a modifier operation.

Im newish with this api so Im not very familiar just yet with context work, but so far I got this, which go into edit mode and walk through the points. However this data is not coming with modifiers information. I guess because Im in the wrong context? I tried applying modifiers before but some mods like time offset and build are not apply-able. Any ideas if this is possible?

Thanks
Horacio

context = bpy.context.copy()
for area in bpy.context.screen.areas:
if area.type == ‘VIEW_3D’:
for region in area.regions:
if region.type == ‘WINDOW’:
context[‘area’] = area
context[‘region’] = region
break
break
obj.data.layers[0].frames[0].strokes