nielzen
06-23-2008, 06:47 AM
Hi
I have a automatic system for producing a lot of similar single object renders of my scene containing 200+ objects. I want the output renders filename to be the same af the objectname in max and therefore I have programmed maxscript to create a batch file that rename all of the renders... but one little thing is missing. The syntax in good old dos for renaming files dosn't allow any spaces except for the one seperating the two filenames and all my object are called: 'something - like - 5555.555' so that is no good. But when include one " at each end of the statement the rename completes flawless.
is there any way that you can add " in maxscript? If do this: outputstring= """+name+" - "+number+""" if of cource fails. Is there a solution?
If not is it posible to trim all spaces in my outputstring?
Thanks
I have a automatic system for producing a lot of similar single object renders of my scene containing 200+ objects. I want the output renders filename to be the same af the objectname in max and therefore I have programmed maxscript to create a batch file that rename all of the renders... but one little thing is missing. The syntax in good old dos for renaming files dosn't allow any spaces except for the one seperating the two filenames and all my object are called: 'something - like - 5555.555' so that is no good. But when include one " at each end of the statement the rename completes flawless.
is there any way that you can add " in maxscript? If do this: outputstring= """+name+" - "+number+""" if of cource fails. Is there a solution?
If not is it posible to trim all spaces in my outputstring?
Thanks
