Save Custom AOVs from lua

Forums: Save Custom AOVs from lua
Forum for OctaneRender Lua scripting examples, discussion and support.

Save Custom AOVs from lua

Postby manusd » Fri Feb 03, 2023 10:18 am

manusd Fri Feb 03, 2023 10:18 am
Hi, I'm trying to save Custom AOVs from lua scripting but when trying I get always the same error "not all the passes for tonemaping are enabled". I create an AOV node, connect it to the render target, enable it and save it with the correct render id pass. I'd appreciate it if someone can tell what I'm doing wrong. The code:
Code: Select all
        --Create AOV node
        renderTarget = octane.render.getRenderTargetNode()
        AOV = octane.node.create
        {
        type         = octane.NT_AOV_CUSTOM,
        name         = "AOV_Custom",
        }
        renderTarget:connectTo(octane.P_RENDER_PASSES, AOV)
        --Enable  AOV and save it
        AOV:setPinValue(octane.P_SUB_TYPE, 0)
        AOV:setPinValue(octane.P_ENABLED, true)
        octane.render.saveRenderPass3(501, string.format("%s/%s_%s_mask_%04d.exr", basepath, basename, maskName[idx], imagenumber), img_type, propsRenderColorSpaceInfo, 0, exr_comp)
        end


thanks
manusd
 
Posts: 16
Joined: Tue Nov 24, 2020 11:58 am

Re: Save Custom AOVs from lua

Postby manusd » Fri Feb 03, 2023 11:47 am

manusd Fri Feb 03, 2023 11:47 am
The issue was provoked for not enabling the AOV mask before starting the render, it's already solved.
manusd
 
Posts: 16
Joined: Tue Nov 24, 2020 11:58 am

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 9 guests

Thu Mar 28, 2024 11:17 am [ UTC ]