Hi All,

Wondering if there's some magic needed in the validate() or in_channels()
method on a DeepPixelOp to allow the plugin to add channels to which the
computed values will be written.

This is a big ol' fail:

void MyDeepPixelOp::_validate(bool for_real)
{
    // ...
    if (input0())
    {
        input0()->validate(true);
        ChannelSet pos = _deepInfo.channels();
        Channel px = getChannel("P.x");
        Channel py = getChannel("P.y");
        Channel pz = getChannel("P.z");
        pos += px;
        pos += py;
        pos += pz;
        DeepInfo di = DeepInfo(_deepInfo.formats(), _deepInfo.box(), pos);
        _deepInfo.merge(di);
    }
    // ...
}

The "P" layer is not visible in the node's output.

-- 
--
*Blake G. Sloan* Pipeline|Software|Color *Digital Domain*

Sent from Beautiful Downtown Playa Vista
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to