Newbie - select vertex 0 to selection


#1

Hi guys,

I am trying to learn a bit of programming and I wanted to automate these few commands. It’s working fine but I would like to replace the first line so that says: select vertex 0 to current selection.

I´ve been trying to do it with the command ls -sl; but Idk how to select vtx0 after that. I would really appreciate any help on this! Thank you

select -r plantPotB01_speedtree|flowersQuad.vtx[0] ;
ConvertSelectionToFaces;
ConvertSelectionToShell;
isolateSelect -state 1 modelPanel4;

#2

Hi guys, I’ve found a solution. But I am having trouble with last line isolateSelect. The script sometimes works and sometimes doesn’t… it’s something with this last isolateselect line.

string $array[] = `ls -sl`;
for ($item in $array)
{
    select -r .vtx[0];
    ConvertSelectionToFaces;
    ConvertSelectionToShell;
    isolateSelect -state 1 modelPanel4;
}