I can't get this working, if I remove the break the script works, but it creates too many erroneous groups, with the break in there it creates a single group, but then when I run the script again it ignores the if statement? Any idea what I'm doing wrong? string $transforms[] = `ls -tr`;for ($t in $transforms) { if ($t ==…
It's a bit hard to tell what's going wrong without seeing what the file your running this on looks like To help with the debug you could make your print statement print the $t variable so you can see what it's doing when it creates the group.
Thanks for your reply, the file is an empty scene, we were able to figure out my problem. Here is the code that works, I needed to put a switch in there to test the if statement and set it to true or false, would be nice if you could use operators like ! on strings, but whatever this works now. int $switch = 0; string…