Interesting program, but it seems unnecessarily awkward to use if I understand it correctly. I take it the code that appears in the body of the script (Corpo) has to be repeated for every file selected, substituting appropriate values for % $ and ! in each case? (If I’ve got this wrong, ignore the rest of the message!)
Assuming my reading of it is right, it seems to me what might be an easier user interface would be to have it run like a Wizard. My suggestion would be as follows.
Window 1 would ask you to specify (by browsing) the path and files to be converted; also the destination directory for the converted ZTL files.
The Next button would take you to a new window where the selected directory and list of file names was displayed, each file name with a second column to specify the smoothing (if any) required all set initially to the same default (whichever you think is likely to be the most popular).
The Next button here would take you to a window with a default path/name to receive the ZScript file to perform the specified conversions, which the user could change if wished.
The Finish button would generate the whole ZScript by looping through the filename/smoothing list to create the succesive blocks of code to go into the body. It would then display a message to say “ZScript xxx created successfully, Load ZBrush, load ZScript xxx and click the Run button.” (xxx as speified in the previous Wizard window).
That way there would be no need for the user to enter any scripting commands, just select files and alter smoothing settings from the default if need be.
I hope you don’t don’t think me ungrateful or mind me suggesting this fundamental interface redesign, but I think it would make a your good idea much easier to use.
EDIT Just correcting a minor typo, but I think my mis-typed instruction to “lick the Run button” would quickly make the screen rather messy!
