You can certainly instantiate other Ops inside your own, as well as hook them 
up and evaluate them. Unless I’m mis-remembering, the simplest place to create 
and connect them is _validate, but if you’re always going to need the Blur op, 
I think you could also create it in your constructor and include its hash in 
your op’s in `append`.

Iop* blurOp = dynamic_cast<Iop*>(Iop::create("Blur"));
blurOp->set_input(0, input(0));
Iop::set_input(0, blurOp);


-Nathan



From: Steve Booth 
Sent: Wednesday, May 01, 2013 9:28 AM
To: [email protected] 
Subject: RE: [Nuke-dev] DD::Image::Blur

Sounds like you want to be in Python mode, and not C++… Gizmo capabilities come 
to mind.  Jonathan can correct me, but I don’t believe you can hand your 
_engine lines to an exernal class.  The only answer I’ve found in the past is 
to actually do the Gaussian blur yourself, in your C++ code.  In fact, my first 
reaction would be to do the blur as an integral part of whatever computation 
you with to accomplish.

 

For sure you can’t make an instance of another Iop from within another Iop… it 
would wreck havoc with Nuke’s cache management, I’m thinking.

 

Steve

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of kulitorum
Sent: Wednesday, May 01, 2013 12:56 AM
To: [email protected]
Subject: [Nuke-dev] DD::Image::Blur

 

In my Iop plugin, I need a (Gaussian) blurred version of the input image, and I 
see DD::Image::Blur exists, but how do I use it?

Can I make a instance of it and just ask for a blurred version of the line I am 
processing?

It is not used in any of the example plugins.

Thanks.



--------------------------------------------------------------------------------
_______________________________________________
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