Extract Mesh as Node from VrayMeshLight per Maxscript

Dear users,

is there a way to extract the underlying mesh from a Vray-Meshlight with maxscript instead of pressing the button? The property $.mesh_source is undefined, since the light was created with the “replace mesh with light” option. So the property $.Shape_mesh delivers a mesh. But I don’t know how to create a selectable editable_mesh out of it with maxscript

Thanks and best regards

Robert

mesh mesh:$.shape_mesh.mesh transform:$.transform