get current location of vertex in animation

Hi everyone,

how can i get the current location (and rotation) of a vertex in a scene?
If i make a cloth-simulation for example, the vertex in every frame has got the location of the first frame.
You can find a simple example as blend in addition.
An operator is used to attach an empty to a vertex of the animated plane.
Thank’s in advance!

Best,
Chris

Attachments

cloth.blend (532 KB)

Allready found the answer here:

The trick is to make a new mesh via mesh_to. Paramter needs to be “apply_modifiers=True”. Than it is possible to read the vector-coordinates from the new generated mesh.