DustinBrown
02-17-2012, 03:56 PM
I have a series of scenes containing characters with accessories. Object naming conventions in all of the scene files is the same, and most of the accessories for each character are the same, but there are a few accessories that differ from scene to scene.
One scene might have shirt, pants, shoes, and hat
Another scene might have shirt, pants, shoes, hat, and glasses
Another scene might have shirt, pants, shoes, glasses, and hat
I've learned how to created if/then conditional statements in maxscript, but I'm unsure how to created an array that contains all possible objects the script might run in to in such a way that if it doesn't find one of them, the script will skip it and keep working.
What is the most efficient way to tackle something like this?
One scene might have shirt, pants, shoes, and hat
Another scene might have shirt, pants, shoes, hat, and glasses
Another scene might have shirt, pants, shoes, glasses, and hat
I've learned how to created if/then conditional statements in maxscript, but I'm unsure how to created an array that contains all possible objects the script might run in to in such a way that if it doesn't find one of them, the script will skip it and keep working.
What is the most efficient way to tackle something like this?
