Skip to content
renderStacks by QuasiKrystal

rsPassGenFromCVS

Warning

This function is only in the commercial version.

This tool makes passes and pmodifiers directly from a CSV file or from the clipboard.

Options

Source

Load a .csv (Comma-Separated Values) file, or paste text from a text editor.

Make the .csv file in a spreadsheet program, for example Excel or Calc. Almost all spreadsheet programs can save a .csv file. This image shows an example table and the result.

Spreadsheet with passgroup, pass, camera, resolution and frameRange columns, and the passes that rsPassGenFromCVS makes from it

The first row of the file sets the columns. The first column must have "pass" or "passgroup".

  • To add a pass in a passgroup, type the passgroup name for each pass.
  • If the passgroup field is empty, the tool makes the pass at the root level. In the image, the pass "kiwi" is an example.
  • If you type only a passgroup name and no pass name, the tool makes the pmodifiers directly on that passgroup. In the image, the "resolution" pmodifier on the passgroup "colors" is an example.
  • If a pass or a passgroup already exists, the tool uses it.

At this time, the tool supports 3 pmodifiers: Camera, Resolution and FrameRange.
Add a column with the pmodifier name to make that pmodifier. You can set some properties directly in the cells of that column:

  • Camera – type the camera name. If the tool does not find the camera, it uses the active viewport.
  • Resolution – use the format <width>x<height>.
  • FrameRange – use the format <Type>:<Value>:
    • <Type> = S (Single), A (Active Time Segment), R (Range) or F (Frame). These are the same options as in the pmodifier UI and in 3ds Max.
    • <Value> = the value for the type:
      • For R (Range), use <start>-<end>, for example 10-120.
      • For F (Frame), use the usual 3ds Max frame format.
      • Important: use a semicolon ; and not a comma , because commas separate the fields in the file.

You can also open the .csv file in a text editor, copy its contents, and press Paste From Clipboard.

To make only passes and passgroups, you do not need a .csv file. Copy a list of passes to the clipboard and paste it. Use the full path format <passgroup>/<pass> to make passes in passgroups. To make an empty passgroup, end the name with /.
For example:

  • "test/colors" – makes the pass "colors" in the passgroup "test".
  • "test/" – makes the passgroup "test" with no passes.
Select Existing
  • Pass / Passgroup button – the tool uses the existing passes and passgroups. To delete them, select the passes or passgroups with this button. Then press Delete before you make the new passes.
  • Print Pass Preview button – shows the list of passes that the tool will make in the MAXScript Listener.
Generate

Makes the passes, the passgroups and the pmodifiers.

Instance pmodifiers with identical data

When on, passes with the same camera, resolution or frame range value use one instanced pmodifier. The tool does not make a separate copy for each pass. This decreases the number of pmodifiers. A change to that pmodifier applies to all passes that share the value.