Skip to content
renderStacks by QuasiKrystal

RPManager Migration Tool

Warning

This function is only in the commercial version.

The RPManager Migration Tool converts the RPManager pass setup of the open scene into renderStacks passes. RPManager does not need to run. The tool reads the pass data out of the saved .max file. It takes the cameras, layers, render elements, materials and renderers from the scene open in 3ds Max.

For an overview of the move from RPManager, read Switch from RPManager to renderStacks.

Requirements

  • A licensed (commercial) renderStacks. This tool is in the commercial build only.
  • The scene that holds the RPManager setup, open in 3ds Max and saved. The tool reads the saved file, so it does not convert a change you did not save.
  • The tool needs no RPManager files. This includes Object Properties: when the RPManager plugin is not installed, the tool reads those values from the saved file.
  • For the Renderer pmodifier: the renderer each pass uses must be installed.

How to Use

Warning

The tool resets the renderStacks data in the scene first. It removes every renderStacks pass, pass group and pmodifier, then builds the passes again from the RPManager data. The tool tells you this and asks before it starts.

  1. Open the scene that holds the RPManager setup, and save it. The tool stops when the scene was never saved.
  2. Open the Utilities menu and select RPManager Migration Tool. The tool shows no file dialog. It works on the scene that is open.
  3. A question box shows the number of RPManager passes found, and the reset warning. When the scene has changes you did not save, the box also tells you about them. The tool reads the saved file, so it does not convert those changes. Click Yes to start the migration.
  4. After the migration, the dialog shows the number of passes the tool created. Open the MAXScript Listener to read every error and warning. See Listener Output.

To run the tool a second time, open the saved file again first. Switching to a converted pass replaces each RPMMaterial with the real material of that pass, and the per-pass materials are only in the RPMMaterial. A second run in the same session cannot convert them. It writes one warning that lists the objects.

How It Works

A .max file is an OLE compound document, and RPManager stores its render-pass list inside it as text. The tool opens the saved file through Windows' structured-storage API and reads the pass data. It then builds each pass in renderStacks, and finds each object a pass names in the open scene.

For every RPManager pass it creates a renderStacks pass with the same name. It converts the RPManager data of the pass into these pmodifiers:

RPManager data renderStacks pmodifier What the tool writes
Camera Camera the scene camera of the same name. See Camera
Aperture width Camera the aperture width of the pass
width, height and pixel aspect Resolution width, height and pixel aspect
output path RenderOutput the output path. The other RenderOutput settings come from the base pass
Time Output mode, range and frames FrameRange the mode, and the values that mode needs. See Time Output
Options group: the nine toggles RenderCommon each toggle. See Options and Environment
Environment: background colour, ambient colour, environment map and Use Map Environment each value, and no map when the pass holds none
the renderer of the pass Renderer a copy of that renderer in the renderStacks renderer store. See Renderer
the render element list of the pass RenderElement every element RPManager drives, on or off for the pass. See Render Elements
render element parameters RenderElementParams (reP) one for each element whose parameters differ between passes
layer set, layer or visibility set Visibility a LayerSet, a Layer or a SelectionSet. See Visibility
Object Properties: On of a light LightOn one entry for each light. See Object Properties
Object Properties: an RPMMaterial slot, or the override material of a capture set Material the real material of that pass, for each object
Object Properties: any other property ObjParams one pmodifier for each property, with one value for each object
the initial value of a captured property the same pmodifier on ::base the value for a pass that captured nothing

The tool writes a property only when RPManager holds a value for it. A property RPManager does not use stays out of the pmodifier, so the scene value stays as it is.

For RenderCommon and Environment, the ::base pass gets the same properties too. Each base value is the value the scene had before the migration. When you switch to a pass that does not set a property, renderStacks restores it from the base. A value from the previous pass does not stay.

Camera

The Camera pmodifier binds the scene camera with the name RPManager stored for the pass, and sets the aperture width of the pass. When the scene holds no camera with that name, the tool still creates the pass, and a warning lists the missing camera.

Time Output

RPManager stores a Time Output mode for each pass, and renderStacks uses the same four modes. The tool converts the mode, then the values that mode needs.

RPManager mode What the tool writes
Single the mode only
Active Time Segment the mode, plus the stored start and end
Range the mode, plus the stored start and end
Frames the mode, plus the Frames box

Only Range stores a real start and end. The other modes leave the Range boxes at RPManager's own defaults, so the tool never reads them as a range. A single-frame pass therefore stays a single frame.

The tool reads the range from the RPManager Range boxes. It uses the Frames box only when somebody typed a frame list there. RPManager leaves 1,3,5-12 in that box by default, so an earlier version of this tool gave every pass that list. That version also set every pass to Range, so a still became a 100-frame render.

Not verified

RPManager Every Nth frame becomes Skip Frame, type Nth. No test scene uses it, so the tool writes a warning. Confirm the result.

Options and Environment

The RenderCommon pmodifier takes all nine toggles from the RPManager Options group. The toggles are Atmospherics, Render Hidden, 2-Sided, Effects, Displacement, Fields, Super Black, Video Color Check and Area Lights as Points.

The Environment pmodifier takes the background colour, the ambient colour, the environment map and Use Map. RPManager stores Use Map apart from the map, so a pass can hold a map with Use Map off. The tool converts both values as they are.

RPManager keeps the environment map in the scene, not in the pass data. The tool finds it by the pass id. A pass whose map is not in the open scene gets a warning and no map.

A pass that holds no map clears the map in RPManager. The tool keeps that: the pass gets an Environment Map property set to none, so the map of another pass does not stay.

RPManager usually keeps the background and ambient colours the same way. The pass data then says only Captured, and the colour is in the scene, under the pass id. The tool reads it from there.

Not converted

An animated background or ambient colour. The tool converts its value at the current frame, and writes a warning.

Renderer

RPManager keeps a full renderer for each pass. The tool puts that renderer into the renderStacks renderer store and adds a Renderer pmodifier that points at it.

A pass gets a warning and no Renderer pmodifier in two cases:

  • The open scene holds no stored renderer for the pass.
  • The stored renderer needs a plugin that is not installed.

Not converted

The renderer settings that differ between passes. The tool does not yet put them into a RendererParams pmodifier.

Visibility

RPManager names what each pass renders in one of three ways, and the tool converts all three.

RPManager renderStacks
a layer set a LayerSet named RPMVisSet_<name>
a single layer that Layer
a visibility set a SelectionSet named RPMVisSet_<name>

RPManager records layer set membership on each node, never on the set. The tool rebuilds a layer set by inverting that: the set holds a layer when a node on that layer names the set.

Not converted

An empty layer in a layer set. A layer that holds no object writes nothing to invert, so the converted set does not hold it.

The tool drops a name the scene does not hold, and writes a warning naming the pass and the count. A pass whose set resolves to nothing gets no Visibility pmodifier, so that pass renders everything instead of the wrong subset.

Check the member count of a converted visibility set before you render. RPManager stores the objects of a set apart from its lights. In one 174-pass test scene, 25 of 107 sets held nothing but the lights. The objects of those sets are not in the data the tool can read.

Render Elements

RPManager holds a render element list for each pass. The tool converts that list in two parts.

The RenderElement pmodifier lists every render element RPManager drives in any pass. Each pass turns on the elements its own list holds. Each pass turns off the elements its list omits. This stops a pass from inheriting the elements of the pass before it.

The ::base RenderElement pmodifier gets every usable render element, each one off. A pass you add by hand copies the base, so it starts with the full element list.

RPManager stores each render element group under its own pass name. That name is often only part of the pass output filename. The tool matches a group to a pass in this order:

  1. By exact name.
  2. By order, but only when the group count equals the pass count.
  3. By partial name. The tool writes a warning that names the group it used.

A reP pmodifier carries a parameter only when its value differs between passes. A parameter with the same value in every pass needs no pmodifier, because the scene already holds that value.

The render elements must exist in the scene under the same names. The tool writes a warning for each element it cannot find.

Not converted

  • Per-element output paths. Use the output token on the RenderOutput pmodifier instead.
  • The per-element file flag.
  • An array parameter or a node reference in a reP pmodifier. A reP pmodifier carries numbers, booleans and strings only. The tool skips the other parameters, and writes a warning.

Object Properties

RPManager can capture property values on objects for each pass: a light on or off, a material, or any other property. The tool converts them as follows.

RPManager renderStacks
On of a light a LightOn pmodifier, one entry for each light
the material of an object, in an RPMMaterial a Material pmodifier with the material of that pass
the override material of an object set, when it is on for the pass a Material pmodifier, for every object in the set
any other property an ObjParams pmodifier named after the property, one value for each object

RPManager also keeps an initial value for each captured property. It uses that value on a pass that captured nothing. The tool writes the initial values to the ::base pass, so every pass starts from them.

The result holds no RPMMaterial. Each Material pmodifier holds the real material of the pass. A material that several objects share stays one shared material, with its own name. RPManager keeps a separate copy of it for each object as the initial material. The tool converts identical copies back to the one material.

The tool writes a warning, and converts the rest, in these cases:

  • The tool cannot read the values, from the scene or from the file.
  • A property is not on the object in the open scene.
  • A value has a type the tool does not convert. It converts booleans, numbers, colours and strings.

Listener Output

After the migration, the tool prints a summary and its warnings in the MAXScript Listener. The layout follows these rules:

  • Warnings about the whole scene come first.
  • Warnings about one pass come next, under a [ pass name ] line. The base is a pass too, so its warnings go under [ ::base ].
  • A message prints once. The tool lists the objects, passes or render elements of the message under it.
  • A list of more than 10 names prints in 3 columns, with 10 lines maximum. A ... line then gives the total.
  • The warning count is the number of lines listed, not the number of raw warnings.

This is the output for a scene with 5 RPManager passes:

> RPManager Migration Tool : 5 renderStacks passes created from File_A.max
>    16 warning(s)
>        per-element output paths are not converted; set them with the output token on the RenderOutput pmodifier
>        13 render elements are not in this scene
>            VRayRawCoatFilter        VRayDenoiser             Diffuse
>            VRayRawCoatReflection    VRayGlobalIllumination   Object ID
>            VRayRawDiffuseFilter     VRayLighting             Specular
>            Shadow                   VRayMtlID
>            VRScansPMaskElement      VRayMtlSelect
>        2 passes have a new name, because renderStacks allows no space, comma or slash in a pass name
>            Pass_04_layer white -> Pass_04_layerwhite
>            Pass_04_layer black -> Pass_04_layerblack

This is the output for a second run in the same session, after a pass switch replaced the RPMMaterials:

>        29 objects lost their RPMMaterial in the open scene, so their materials were not converted. Open the saved file again and rerun the migration
>            Teapot001   Teapot011   Teapot021
>            Teapot002   Teapot012   Teapot022
>            Teapot003   Teapot013   Teapot023
>            Teapot004   Teapot014   Teapot024
>            Teapot005   Teapot015   Teapot025
>            Teapot006   Teapot016   Teapot026
>            Teapot007   Teapot017   Teapot027
>            Teapot008   Teapot018   Teapot028
>            Teapot009   Teapot019   Teapot029
>            Teapot010   Teapot020

Notes

  • RPManager writes a header before its live pass list. The header holds one name per pass. The tool reads the pass names from it, and counts the passes from it.
  • RPManager also keeps copies of every pass elsewhere in the file. Some copies hold an empty output path. The header bounds the list to the live passes, so a copy never becomes a pass.
  • Each pass keeps the name RPManager gave it, with one exception. renderStacks allows no space, comma or slash in a pass name. The tool removes each space and comma, and changes each slash to an underscore. Pass_04_layer white becomes Pass_04_layerwhite. The tool writes one warning that lists each pass it renames, with its old and new name.
  • A file saved by a very old RPManager version may hold no header. The tool then names each pass after its output filename, and writes a warning. The tool never invents a name silently.