|Unfortunately, I am still having problems. To test sending variables from one batch to file to another I created the following two test files:|
SET /P num=type a number here:
SET /P end=type last number here:
SET /P step=type step size here:
FOR /l %%i IN (%num%, %step%, %end%) DO (
SET /A ref=ref+1
ECHO number !t!
The error that I am getting with this code is with the ECHO clark_!ref!. The first iteration it is executing correctly but then the number of r increases beyond the step size of 1 defined in test1.bat.
Also, it seems that the step size of FOR loops must be an integer. When I try using a a fraction or decimal the iterator value does not change.
Using the same t and ref variables from this test should be enough to render images from the simulation at integer time steps with irregular namings for the png files. However, this is not the case. The script file which is read by smoke view is the following, where t is time set in the batch file and ref increases by one each iteration in the for loop. Unfortunately, neither of these variables are recognized in the script file.
SETTIMEVAL=!t! (t is not recognized as a defined variable)
clark_1_!ref! (ref is not recognized as a defined variable)
The output in the command prompt from smoke view says:
Script: loading file clark...
file clark... was not loaded
Rendering to: clark_1_!ref!.png . Completed.
An image of the simulation at time zero named clark_1_!ref! is then saved in the directory.
Any other suggestions?
Thanks for your help.