Hi guys, I'm trying to take my selection of 5 objects and print the name of first object, then when I run the code a second time print the name of the next object and so on. This works until it gets to the end of the list, but after that the scripts dies and I'd like it to go back to the beginning of array and print the…
Thanks for you help, but no I want to print the first thing in the list, then the second time I run the script print the second thing in the list, and so on, when it reaches the end of the list I want it to loop back and print the first thing. I figured it out after bashing my head for two days, I posted the solutions…
Yes, the loops are way to go i guess. The only thing to consider additionally is to store two values at the beginning. One int would be the counter as you already did and the second one would be a total count of selected objects....this will allow you to compare counter value with total count of the object and once they…
I couldn't figure out how to solve this with a loop, I was able to get it to work after many hours of trial and error by using an if else statement.Here's how I got it working by getting a list of selected objects and then counting through them each time you run the script, when it reaches the last item in the list it…
um you want to iterate through the selection and print information about each thing right ? I don't do mel (I will literally fight you if you try to make me) but according to google this should give you a start $things = `ls-sl`; for ($i in $things) { print $i; } or if you're being sensible and use python/pymel instead you…