I wrote a script for create a mesh with the name “Explosion”…

I d like to move it in layer 2…is there the way for doing it with python?!

I know that every object has a layer property…but how can I access to the object if I know only the mesh name?

The object name is variable…infact sometimes it is “Mesh.001” but sometimes is “Mesh.003”… Is there the way to gain the Object name starting from mesh name?
If I can do this I think I can move it with object.Layer =2…