I am trying to load multiple scripts to compile at startup.
They must be .txt’s so I can convert them to .zsc’s I have
Script01.txt
Script02.txt
Script03.txt
I also have a file with their paths in them.
Files.txt which contains the paths to these scripts.
Like so:
C:/pathToScript/Script01.txt
C:/pathToScript/Script02.txt
C:/pathToScript/Script03.txt
Now I want to compile each script when I press a script button.
ZBrush will not compile all of them, it loads each one in my loop, but only the last one gets compiled to a zsc.
Here are my steps....
I am loading memory from file<b> (F</b><b>iles.txt)</b>, then I am reading string from memory (using end of line)... this works because I am testing it with a <b>[Note,fileName]</b> Command.
Then I am setting <b>[FileNameSetNext,fileName]</b>and using <b>[ISet, ZScript:Load,1]</b> to load the script.
It seems like I need a stall in there, I will try the <b>sleep</b> command and see if it helps, but usually this works on the thread, so I doubt that it will work.
It loads All the Scripts, but only compiles the last one in the list. I really need a way to compile multiple versions of the scripts.
Anyone have any Ideas?
I will try to make 2 separate scripts do the actions, maybe I can control this by reloading the main script??? I’ll give it a shot…