- Mon Apr 18, 2011 12:55 pm
#341571
Hi,
I am trying to write a script for my batch renders based on the example script “progressive_animation” available in the scripts folder in Maxwell.
I found the script “progressive_animation” usefull to progressively render different stills, basically I set my target SL for the script and let it render whatever is in the “input” folder defined in the script.
Occasionally I am adding some new files to the input folder and rerun the script, everything is fine my newly added MXS files will start render until they reach the same SL number as the other files in the “input” folder, before continuing to progressively render the rest of the files to a higher SL.
Now the problem! While basically everything works fine the script has no way to tell what the current SL number of the loaded files is, after I rerun the script, until it calls the rendering function. This is a problem because it makes loops in the script very slow, with only 10 files the loops in the scrip are taking too much time!
After checking the Maxwell manual I could only find how to do:
Var myVar = Scene.samplingLevel();
Witch gives me the maximum SL of a file a value that seems to stay constant no matter what SL the file reached already.
This function can be called just after loading the file and is very fast.
But what I need is something like this:
Var myVar = Scene.currentSamplingLevel();
Is there a function to get the current SL number of a file?
Thanks in advance
I am trying to write a script for my batch renders based on the example script “progressive_animation” available in the scripts folder in Maxwell.
I found the script “progressive_animation” usefull to progressively render different stills, basically I set my target SL for the script and let it render whatever is in the “input” folder defined in the script.
Occasionally I am adding some new files to the input folder and rerun the script, everything is fine my newly added MXS files will start render until they reach the same SL number as the other files in the “input” folder, before continuing to progressively render the rest of the files to a higher SL.
Now the problem! While basically everything works fine the script has no way to tell what the current SL number of the loaded files is, after I rerun the script, until it calls the rendering function. This is a problem because it makes loops in the script very slow, with only 10 files the loops in the scrip are taking too much time!
After checking the Maxwell manual I could only find how to do:
Var myVar = Scene.samplingLevel();
Witch gives me the maximum SL of a file a value that seems to stay constant no matter what SL the file reached already.
This function can be called just after loading the file and is very fast.
But what I need is something like this:
Var myVar = Scene.currentSamplingLevel();
Is there a function to get the current SL number of a file?
Thanks in advance