I've had this happen with builtin Nuke nodes, so it might be a more
general Nuke bug instead of a problem with your plugin..
I didn't report it as I have no idea how to reproduce the bug and it
only happened once or twice.. but if your plugin triggers it more often,
it'd be worth sending to Foundry support
On 19/07/14 08:42, Derek Melmoth 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
>
--
ben dickson
2D TD | [email protected]
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev