Hi Derek,

Have a look at the channels section of the dev guide:
http://docs.thefoundry.co.uk/nuke/80/ndkdevguide/2d/channels.html, as well
as probably the KeyMix example that's shipped with the NDK, as that
accesses channels from multiple inputs and sets up various channel aspects
so should get you pointed in the right direction.

Cheers
Jack



On 19 July 2014 00:12, Derek Melmoth <[email protected]>
wrote:

> Hi,
>
> My plugin is experiencing a problem where in certain cases it will keep
> rendering repeatedly without displaying the result on the screen - while
> rendering repeatedly, the upstream nodes flash yellow to indicate they are
> processing.  In most cases the plugin functions correctly, but the problem
> can occur in special cases such as, for example, you view the alpha channel
> of a merge node that's downstream of my plugin.  (I suspect I might not be
> handling channels correctly?)
>
> I don't know where the cause of the problem is, but I figure it's worth
> investigating the part of the plugin that I don't fully understand yet.
>
> I'm wondering exactly what does the "set_out_channels()" function do?
> Inside _validate() I am using "set_out_channels(DD::Image::Mask_All)", but
> I don't really understand what that does.  Does it matter that
> "set_out_channels" is called after "copy_info()" rather than before?  My
> _validate looks more or less like this:
>
>
> _validate(bool for_real){
>     for(unsigned int i = 0; i < INPUT_IMAGE_COUNT; ++i){
>         DD::Image::Iop::input(i)->validate(for_real);
>     }
>     DD::Image::Iop::copy_info();
>
>     set_out_channels(DD::Image::Mask_All);
> }
>
>
> My plugin takes 2 input images (both required), and to render a pixel it
> must request the entire row of pixels from both input images.  It outputs
> all channels that are in the first input image, and reads only one channel
> from the second input image.
>
> I'm using Nuke7.0v6 in Windows 7
>
> Any advice or ideas would be great!
>
> Thanks,
> -Derek
>
>
> _______________________________________________
> Nuke-dev mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
>
>


-- 


Jack Binks, Product Manager
The Foundry Visionmongers
5 Golden Square, London, W1F 9HT, UK
Tel: +44 (0)20 7479 4350
Web: www.thefoundry.co.uk

The Foundry Visionmongers Ltd.
Registered in England and Wales No: 4642027
_______________________________________________
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