Corona Renderer - Tone Mapping Pipeline Wrapper is a MaxScript file for managing the tone mapping operator list in Corona Renderer 8 or later. It lets scripts add, remove, and retrieve operators, along with their IDs.

What the wrapper lets you script

The wrapper works with the operator list and exposes functions for common changes and checks:

  • Add an operator at the end of the list or at a specified position.
  • Delete the last operator, an operator at a specified position, or all operators.
  • Retrieve all operators, their IDs, or operators together with their IDs.
  • Get an operator or its class by its position in the list.
  • Check whether the list is empty and generate an ID not already used by an operator.

A scene setup script can build an operator sequence, inspect the current list, or remove entries. The developer's repository includes the MaxScript file and function reference.

Example: add a Contrast operator

To append a Contrast operator to the end of the list, use:

crnToneMapping.AddTMOperatorsLast #(ContrastOperatorPlugin colorMappingOperator_contrast:2.00)

Another example passes Contrast and ACES OT operators together to the insertion function at position 5, with parameters set for each.

Compatibility and license

The developer's README specifies Corona Renderer 8 or later. The catalog lists version 1.00 and 3ds Max compatibility from 2014 to 2023. The README does not provide a newer 3ds Max compatibility range, so check with the maintainer if you plan to use a version outside the listed range. Chaos also provides MAXScript documentation for Corona Renderer.

The repository includes an MIT license. It permits use, modification, and redistribution subject to the license terms, including retaining its notice. Read the included license for the full conditions.