Arrow Group Industries LM86 Manual do Utilizador Página 51

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 167
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 50
© Next Limit Technologies 2010
Maxwell Render 2.5 User Manual
Chapter 9. The core rendering application | 51
Load Script File: Load a script le in .ms or .js format and open it in the Script
Editor. Script les can be drag and dropped to the Viewer area or to the Script Editor
to load them.
Save Script File: Save the current script in .ms or .js format.
Run Script: Run the script currently open in the Script Editor.
Debugger: Open the script Debugger window.
Find: Find a word in the script.
Undo and Redo: Undo or Redo the last changes in the script.
9.07.01 Autocomplete
When writing a script, the autocomplete feature offers easy access to the main
functionalities. When typing the keywords “Maxwell”, “Scene” or “MXI”, the Script Editor
will display a dropdown list, giving you access to all the available commands to control the
Maxwell engine, the scene settings or the MXI settings respectively.
Example
This simple script accesses all the MXS scenes in a folder and its subfolders, changes the
scenes’ render settings, renders them and saves the output image in the specied location.
You can change the commands and use the autocomplete help to explore all capabilities.
// These lines are comments – Make massive changes in MXS les and launch them
to render
// This script allows you to access all the MXS located in the folder “inputFolder” and
its subfolders
// Open the scenes, change their SL and resolution and launch the render(s)
// The output of all the images is stored in the folder “outputFolder” in Tiff format.
var inputFolder = “C:\\ set the input folder”;
var outputFolder = “C:\\ set the output folder”;
var engineVersion = Maxwell.getEngineVersion();
var mxsCount = Maxwell.getNumberOfFilesInBranch( inputFolder,
“*.mxs” );
var mxsList = Maxwell.getFilesInBranch( inputFolder, “*.mxs”
);
for( var i = 0; i < mxsCount; i++ )
{
var mxsFile = mxsList[i];
Maxwell.print( “rendering Mxs file: “ + mxsFile );
Maxwell.openMxs( mxsFile );
Scene.setSamplingLevel( 12 );
Scene.setResX( 1024 );
Scene.setResY( 768 );
var imagePath = outputFolder + “\\” + Maxwell.getFileName(
mxsFile ) + “_” + engineVersion + “.tiff”;
Scene.setImagePath( imagePath );
Maxwell.startRenderAndWait();
}
Vista de página 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 166 167

Comentários a estes Manuais

Sem comentários