Hi @ferdinand,
Thank you for the introduction and for welcoming me to this forum. Glad to be part of the community.
In my testing, I found that data[5], data[6], and data[7] were all set at the same time (around the 6th or 7th evaluation), so I don't think I can use that to determine the type of render. This makes me wonder, how is an api user supposed to use those data values in any meaningful way when the render token evaluated before the data is populated?
I appreciate the code you provided, but I don't think that solves my question either. Please correct me if I'm wrong, but my understanding is that you can kick off a render job that outputs BOTH a regular image and multi-pass images in the same job. The example you gave indicates if multipass is enabled in the render settings, but this will also be true during the job's regular image render (so the regular image filename will incorrectly indicate a multipass render). Please see the attached image for how I expect this to be used.
Thanks again,
-G