Xmesh, maxscript and visibility