Converting a list to string
A lot of times I need to take a python list and convert it back into a giant string to pass into either MEL or to feed into batch tool via command line – the best example I can think of happens to be Substance Batch Tools which typically looks for custom inputs.
It’s actually fairly easy to do it in a single line:
for item in randomList: stringTemp+= item + " "
That’s it. It’s fairly useful when you need to pass in list of mesh groups to Substance via --input-selection