{
  "version": 0,
  "execution": {
    "transactionMode": "SAFE_AUTO_COMMIT"
  },
  "entry": "setPresetPath",
  "blocks": {
    "setPresetPath": {
      "type": "setVar",
      "inputs": {
        "name": "presetPath",
        "value": "/path/to/export-preset.epr"
      },
      "next": "setOutputPath"
    },
    "setOutputPath": {
      "type": "setVar",
      "inputs": {
        "name": "outputPath",
        "value": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "::DESKTOP::/active-sequence.",
              {
                "type": "prGetExportFileExtension",
                "inputs": {
                  "sequence": "::SEQ\\ACTIVE",
                  "presetPath": {
                    "var": "presetPath"
                  }
                }
              }
            ]
          }
        }
      },
      "next": "renderSequence"
    },
    "renderSequence": {
      "type": "prRenderSequence",
      "inputs": {
        "sequence": "::SEQ\\ACTIVE",
        "target": "IMMEDIATELY",
        "range": "ENTIRE",
        "outputPath": {
          "var": "outputPath"
        },
        "presetPath": {
          "var": "presetPath"
        },
        "waitForCompletion": true,
        "onError": "STOP",
        "storeResultIn": "renderOk"
      },
      "next": "logResult"
    },
    "logResult": {
      "type": "esConsoleLog",
      "inputs": {
        "message": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "rendered=",
              {
                "var": "renderOk"
              },
              " path=",
              {
                "var": "outputPath"
              }
            ]
          }
        }
      },
      "next": null
    }
  }
}
