Author Topic: How to Accurately Identify the Last Rendering Mode  (Read 229 times)

2025-08-29, 10:14:14

394452216@qq.com

  • Active Users
  • **
  • Posts: 11
  • i love render
    • View Profile
Hello I want to know whether the content of the last rendering in the current VFB was generated by Production Render or IR Mode. There is no time record in the log (CoronaMax2026_log.txt, CoronaMax2026_interactive.txt), so it is impossible to tell.
CoronaRenderer.CoronaFp.getRenderType also only works during rendering. It will not function once rendering is complete.

Yesterday at 20:42:31
Reply #1

Avi

  • Corona Team
  • Active Users
  • ****
  • Posts: 827
    • View Profile
I’ve made a simple MaxScript(USING AI) that can tell you whether your last render was done in Production or Interactive Rendering.

How it works:
- Corona’s `CoronaRenderer.CoronaFp.getRenderType()` only works while a render is running 
  (returns 0 = Production, 3 = Interactive).
- To get around this, the script uses a `#postRenderFrame` callback which captures the mode just before the render ends.
- It then saves the result in a persistent variable and updates the render stamp with either [PROD] or [IR].

This way, after rendering finishes, you can still see which mode was used in the VFB stamp.

Script attached below.
 
If you’d like to see this added as a native feature, feel free to log it here:
https://chaoscorona.ideas.aha.io/ideas
« Last Edit: Yesterday at 20:59:14 by Avi »
Arpit Pandey | chaos-corona.com
3D Support Specialist - Corona | contact us