Thanks, Frank.

I have been using it, but wanted a confirmation if aborted() is the way to
go.

Could you please explain what imagePlane.makeUnique() does ?
and when exactly do we need to call it ?


In my plugin()  (which is a 2 input plugin),
I create 2 image planes to read my 2 input images
This function crashes if I don't make my output imgPlane writable.
Any idea why ?

thanks !
Dev


Here is a stripped down version..

void myScalar::renderStripe(ImagePlane &imgPlane)
{
   // create a new image plane to read input 0
...
   input0().fetchPlane(input0_ImgPlane);

  // create another image
....
  input1().fetchPlane(input1_imgPlane);

...
// now I write the output
// imgPlane.makeWritable()           .... plugin crashes if I don't make it
writable.
 foreach (z, imgPlane.channels())
{
   for (... box iteration...)
   {
      imgPlane.writableAt(it.x, it.y, imgPlane.chanNo(z)) = 1.0;
   }
}
}




On Thu, May 14, 2015 at 3:35 PM, Frank Harrison <[email protected]>
wrote:

> The aborted() state should be set.
>
> ImagePlane newPlane = ... ;
> input.fetchPlane(newPlane);
>
> if (aborted()) {
>   // handle or return
> }
>
>
> hth
>
> On 14 May 2015 at 23:23, devMannemela <[email protected]> wrote:
>
>> Hi !
>>
>> I am writing a multi-input PlanarIop node.
>>
>> When I try to read the input image into an ImagePlane,
>> Is there a way to check if fetchPlane() call has succeeded or not ?
>>
>>
>> thanks !
>> Dev
>>
>>
>>
>> _______________________________________________
>> Nuke-dev mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
>>
>>
>
>
> --
> Frank Harrison
> Senior Nuke Software Engineer
> The Foundry
> Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906
> Web: www.thefoundry.co.uk
> Email: [email protected]
>
> _______________________________________________
> Nuke-dev mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
>
>
_______________________________________________
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