Any features you'd like to see implemented into Maxwell?
User avatar
By jc4d
#301149
Would be nice to have a option to save each SL in different file to "debug" or something an image and know in what SL the noise level is acceptable.
For example if I want to prepare an animation but I want to know what SL each frame it should be reach with less noise possible and in a "normal" timeframe, I don´t want to wait in front of the computer seeing at what SL the noise is ok, so I think something like save incremental or SL log can be a good feature.

Cheers
JC

PS. I hope you can understand :lol: :lol:
By martgreg
#301915
do you mean the image is logged at each service level so you can inspect them at your leisure when they have been rendering for a while?

or to save file space you can specify a range to start logging the images .. ie between sl15 and sl18
User avatar
By jc4d
#301949
Hi Kami,
For example, you want to make an animation but to know at what SL the noise is ok for render each frame, you´ll let render one frame during the night (no SL limit) and in the morning you can check each SL saved in separate image files to know at what SL the noise is ok or acceptable, so after that you can render the animation at that specific SL no more no less.
If you render an animation until SL 5 for instance each frame and after the animation is done you realize that SL is not enough and you have to re-render all the animation or part of it at SL 6 or so, for me is a waste of time... so this feature can save time.

Cheers
JC
By JDHill
#301979
In case it's helpful, there's an app here (http://www.maxwellrender.com/forum/view ... 74&start=0) that can do what you want. I wrote it a long time ago, and you'll have to download and install Microsoft .NET Framework 1.1 to use it, but it can save copies of the rendered image at each SL (technically, not SL, but each time the image file is updated).
User avatar
By bejack
#302004
I guess you can do this also with AppleScript on the Mac side of life ;-)
By QuakeMarine1
#302084
use a simple batch file

edit all red to match your requirenets

info:
(2,1,30)
it counts from 2 to 30 in step size 1



".....\mxcl.exe" -mxs:".......\scene.mxs" -stdout -o:".......\saveSL1.tif" -s:1 -t:9999 -mxi:"C:\temp.mxi" -nowait
for /l %%X in (2,1,30) do ".....\mxcl.exe" -mxs:"......\scene.mxs" -stdout -o:"......\saveSL%%X.tif" -s:%%X -t:9999 -mxi:"C:\temp.mxi",r -nowait
By numerobis
#302090
:shock: :shock: :shock: i wasn't aware that this is working already.
Thank You for pointing this out! 8)
User avatar
By mashium123
#369932
sorry to bring this up again.

currently i need to save each "full" sampling level. (to be able to compare the noise levels afterwards)
ideally the sample level would be part of the image name, e.g. test_sl01.jpg, test_sl02.jpg ... test_slX.jpg.

i tried some things with the lines quakemarine posted above, but i can't get it to work properly, in a resume manner.
everytime the renderer reaches the given sl, it starts again from scratch and renders until the next sl-step.

so, what i would need is exactly the batch that quakemarine wrote down, but only it would need to resume the mxi. not start all over again.

how would i need to edit those lines to achieve this? any idea?
thx a lot.
User avatar
By mashium123
#369939
Mihai wrote:You could add the flag: -trytoresume to those lines

http://support.nextlimit.com/display/ma ... Parameters
it worked in terms of resuming. but with this flag it stops writing the different sl-updates in different images.
it only overwrites the one and only generated tif.

so, if i use these lines, it works as expected, but starts from scratch each time:

"C:\Program Files\Next Limit\Maxwell 2\maxwell.exe" -mxs:"\\I7920\Public\sltest\sltest.mxs" -o:"\\I7920\Public\sltest\saveSL1.tif" -s:1 -mxi:"\\I7920\Public\sltest\sltest.mxi" -nowait
for /l %%X in (4,4,12) do "C:\Program Files\Next Limit\Maxwell 2\maxwell.exe" -mxs:"\\I7920\Public\sltest\sltest.mxs" -o:"\\I7920\Public\sltest\saveSL%%X.tif" -s:%%X -mxi:"\\I7920\Public\sltest\sltest.mxi" -nowait

but if i add the trytoresume-flag like this:

"C:\Program Files\Next Limit\Maxwell 2\maxwell.exe" -mxs:"\\I7920\Public\sltest\sltest.mxs" -o:"\\I7920\Public\sltest\saveSL1.tif" -s:1 -mxi:"\\I7920\Public\sltest\sltest.mxi" -nowait
for /l %%X in (4,4,12) do "C:\Program Files\Next Limit\Maxwell 2\maxwell.exe" -mxs:"\\I7920\Public\sltest\sltest.mxs" -trytoresume:"\\I7920\Public\sltest\sltest.mxi" -o:"\\I7920\Public\sltest\saveSL%%X.tif" -s:%%X -mxi:"\\I7920\Public\sltest\sltest.mxi" -nowait

(i guess the last mxi-flag right before -nowait isn't needed but taking it away seems to have no influence

...it resumes, but only generates one (the first sl) tif and overwrites that one when arrived at the respective sl (while the title stays the same. although the console does say: "scene info: Image output: \\I7920\Public\sltest\saveSL4 (and 08 and 12 in the respective renders).tif"

what am i doing wrong?
User avatar
By Mihai
#369947
I think for what you want it would be better to use the supplied script. Check in Maxwell>Scripting>Scripts>render_events.

Here is a modified version of it which lets you specify after which SL it should start writing individual output files. Default is after SL 5. Note that you have to have an output path specified in the scene. The "sl.toFixed()" function lets you specify how many decimals the name of the file should have. Probably you don't want it to be named myfile_sl_8.564795.png.....the default is 2 decimals.
Code: Select all
var mxsPath = "G:\MAXWELL\testIncr.mxs";
var startAtSL = 5;

Maxwell.print( "rendering Mxs file: " + mxsPath );
Maxwell.openMxs( mxsPath );
var imagePath = Scene.imagePath;
Scene.setSamplingLevel( 25 );
Scene.setTime( 20 );
Scene.setImagePath( imagePath );

RenderEvents["renderFinished()"].connect(renderHasFinished);
RenderEvents["samplingLevelChanged(double)"].connect(slHasChanged);
RenderEvents["renderError"].connect(errorHappened);
RenderEvents["renderWarning"].connect(warningHappened);

Maxwell.startRender();

//////////////////////////////////////////////////////////////////////////////////////////////////////////

function renderHasFinished()
{
  Maxwell.print( "Render finished!!" );
}

function slHasChanged(sl)
{
  Maxwell.print( "Script Info: SL Changed: " + sl);

  // Copy the current image with this SL to a different location

        if(startAtSL <= sl ){
   var imagePathAtSL = FileManager.getFileFolder( imagePath ) + "/" + FileManager.getFileName( imagePath ) + "_sl_" + sl.toFixed(2) + ".png";
   FileManager.copyFile( imagePath, imagePathAtSL );
        }

}

function errorHappened(err)
{
  Maxwell.print( "Script Info: Render Error: " + err );
}


function warningHappened(warning)
{
  Maxwell.print( "Script Info: Render Warning: " + warning );
}

////////////////////////////////////////////////////////////////////////////////////////////////////////// 
By numerobis
#369949
can i change the ".png" to ".mxi"? And would it be possible to add the name of the rendernode to the filename?
User avatar
By mashium123
#369957
Mihai wrote:I think for what you want it would be better to use the supplied script. Check in Maxwell>Scripting>Scripts>render_events.

Here is a modified version of it ...
thank you very much.
this works perfect. :)
render engines and Maxwell

well I don't think AI will remain like it is now. […]

Help with swimming pool water

Hi Andreas " I would say the above "fake[…]