List all verts on selected object

Sometimes you will have to store a list of all the verticies of your selected object. This can later on be transformed to a list of its positions and that where you can really start to make fun stuff happen!

$mesh = `ls -sl`;

select `polyListComponentConversion -toVertex $mesh`;

string $vertList[] = `ls -selection -flatten`;

select -cl;