modifiers and vertices location

hey,

I’d like to know if there’s a straight way to know the vertex location of a mesh deformed by several modifiers applied on one of its user object, and if yes can I access them anywhere in the stack, or at the end.

… if no, I though to :
. duplicate object and mesh,
. apply modifiers on the clone,
. verts = me.vertices
. erase mesh/object clone.

how would you do that ? thanks.

you could use object.to_mesh like this…


import bpy
sce = bpy.context.scene
obj = bpy.context.object

mes = obj.to_mesh(sce, True, 'PREVIEW')
bak = [v.co for v in mes.vertices]
bpy.data.meshes.remove(mes)

for co in bak: print (co)

sweet :slight_smile: elegant :slight_smile:
compared to that

        '''
        selected = bpy.context.scene.objects.active
        print(selected.name)
        bpy.ops.object.select_name(name=objectSourceName)
        bpy.ops.object.duplicate()
        obsource = bpy.context.scene.objects.active
        mods = obsource.modifiers.keys()
        mods.reverse()
        for mod in mods :
            bpy.ops.object.modifier_apply(modifier=mod)
        '''

thank you