Skip to content
Permalink
Browse files

Expose Pixel Error AOV

  • Loading branch information...
Mango-3 authored and dictoon committed Aug 19, 2019
1 parent a7e1918 commit 5bce01983e9b831f2f7931a5080079bb10c06806
@@ -1398,6 +1398,10 @@ def create(self):
columnAttach=[(1, "right", 1), (2, "both", 8)]),
attrName="invalidSamplesAOV")

self._addControl(ui=pm.checkBoxGrp(label="Pixel Error",
columnAttach=[(1, "right", 1), (2, "both", 8)]),
attrName="pixelErrorAOV")

self._addControl(ui=pm.checkBoxGrp(label="Pixel Sample Count",
columnAttach=[(1, "right", 1), (2, "both", 8)]),
attrName="pixelSampleCountAOV")
@@ -166,6 +166,7 @@ MObject RenderGlobalsNode::m_invalidSamplesAOV;
MObject RenderGlobalsNode::m_normalAOV;
MObject RenderGlobalsNode::m_nprContourAOV;
MObject RenderGlobalsNode::m_nprShadingAOV;
MObject RenderGlobalsNode::m_pixelErrorAOV;
MObject RenderGlobalsNode::m_pixelSampleCountAOV;
MObject RenderGlobalsNode::m_pixelTimeAOV;
MObject RenderGlobalsNode::m_pixelVariationAOV;
@@ -653,6 +654,9 @@ MStatus RenderGlobalsNode::initialize()
m_nprShadingAOV = numAttrFn.create("nprShadingAOV", "nprShadingAOV", MFnNumericData::kBoolean, false, &status);
CHECKED_ADD_ATTRIBUTE(m_nprShadingAOV, "nprShadingAOV")

m_pixelErrorAOV = numAttrFn.create("pixelErrorAOV", "pixelErrorAOV", MFnNumericData::kBoolean, false, &status);
CHECKED_ADD_ATTRIBUTE(m_pixelErrorAOV, "pixelErrorAOV")

m_pixelSampleCountAOV = numAttrFn.create("pixelSampleCountAOV", "pixelSampleCountAOV", MFnNumericData::kBoolean, false, &status);
CHECKED_ADD_ATTRIBUTE(m_pixelSampleCountAOV, "pixelSampleCountAOV")

@@ -1146,6 +1150,9 @@ void RenderGlobalsNode::applyGlobalsToProject(
if (AttributeUtils::get(MPlug(globals, m_nprShadingAOV), enabled))
if (enabled) aovs.insert(registrar.lookup("npr_shading_aov")->create(params));

if (AttributeUtils::get(MPlug(globals, m_pixelErrorAOV), enabled))
if (enabled) aovs.insert(registrar.lookup("pixel_error_aov")->create(params));

if (AttributeUtils::get(MPlug(globals, m_pixelSampleCountAOV), enabled))
if (enabled) aovs.insert(registrar.lookup("pixel_sample_count_aov")->create(params));

@@ -195,6 +195,7 @@ class RenderGlobalsNode
static MObject m_normalAOV;
static MObject m_nprContourAOV;
static MObject m_nprShadingAOV;
static MObject m_pixelErrorAOV;
static MObject m_pixelSampleCountAOV;
static MObject m_pixelTimeAOV;
static MObject m_pixelVariationAOV;

0 comments on commit 5bce019

Please sign in to comment.
You can’t perform that action at this time.