Hi, I'm working on a script to place cylinders on selected faces for booleans. I need to place the first selected object into a token so I can call it up, but am confused on how I can bring the selection into a string to tokenize between the "." The script is meant to allow me to select adjacent components on a poly…
You probably want to use `ls -sl -fl` to make sure each item in the array has its own index before performing the loop. Tokenize works like this: $selectionArray = `ls -sl -fl`; string $newArray []; tokenize $selectionArray[0] "." $newArray; print $newArray;