Can I get vertex's coordinates result of cloth simulation? blender version==2.9.
I want to get vertex coordinates result of cloth simulation(with python script, if I could).
Now, although I could get the vertex coordinates, they are before cloth simulation.
v_world = v.co @ obj.matrix_world
bpy.ops.object.empty_add(
                 type='ARROWS',
                 location=v_world)



can anyone help me? Thanks in advance!!
You can use the dependendy graph to do that (supposing the simulation is already baked):
import bpy
import bmesh


# Set the frame considered as the result of the sim
bpy.context.scene.frame_current = 30

# Get the dependency graph state for this frame
dg = bpy.context.evaluated_depsgraph_get()

# The object
obj = bpy.context.object

# The mesh from the object and dependency graph
bm = bmesh.new()
bm.from_object(obj, dg)

# Take the coordinates
for v in bm.verts:
    print(v.co)

del bm