Just to confirm, have you actually hooked your Op instances up to anything that's generating image data?
-Nathan From: Johannes Saam Sent: Monday, December 29, 2014 3:19 PM To: [email protected] ; Nuke plug-in development discussion Subject: Re: [Nuke-dev] Using nukes own ops outside of nuke Ok the update on this is ... i think i need support to step in there is force_validate tryValidate and validate and neither work.... tryValidate returns true meaning it as per NDK ref should have successfully filled in the Info meaning withdth and height should work but they dont.... if anyone wants to try it ... make std::vector<Iop*> and feed it in validate of your custom Op.... i validsate there already for the first time btw... in build_handles access the list of Iops and try to validate them and after that print the format i cant get the Iop to update at all. fun fact is that even after i force the Iop that is connected to validate by viewing it nothing changes... am i just saving empty pointers to nothing? But why would they hang around? this is very strange to me now any helpo is appreciated! always trying to break nuke :P I did try to get the NODE instead but as there is no way for me to access the node i can just see the pointer but thats it. On Mon, Dec 29, 2014 at 2:56 PM, Johannes Saam <[email protected]> wrote: i tried Op::force_validate( true ) btw no luck On Mon, Dec 29, 2014 at 2:33 PM, Johannes Saam <[email protected]> wrote: Thanks guys! Let me be more specific... its all very theoretical sorry... so the first issue i have is that when i have an Op* in nuke and use it outside the regular context i dont get it validated. So imagine i have an Iop* store it in a list and then at some point ( nuke has not done anything besiuds running and showing the interfacce ) i wann access the parameters of that Iop* using ->format() for example... i am calling validate( true) on the Iop BUT the Iop has no valid data to read. The pointer is valid though because things like accessing the name Knob work or printing the Class() so thats working but the node wont validate outside the regular validate inside my plugin... soooo how do i validate the Iop properly with all its ins and outs.... Then the next level is to use that node to compute stuff.....re: Colin i wanna try both... with nuke running i could feed it input data ( i hope somehow ) and then compuite it using the engine ? Best would be to just link against DDImage and not even have to run nuke... but thats the next next step :) I am just trying to see how far i can push this... but first validating the Iop ( or cameraOp or whatever ) PROPERLY form the outside would be cool.... just try making an std::vector<Iop*> and store it as a member and then at some other point lets say in build_handles() iterate over the list and print all the Iops resolutions.... or even better access the pixel data .... HOW?>! The shared memory idea for i/o sounds doable in theory but would be rather ugly dont you think? Thanks guys! On Mon, Dec 29, 2014 at 12:28 PM, Pierre Jasmin <[email protected]> wrote: In theory, you could make a shared memory node as a nuke operator, and call Nuke command line from another program, have the ShMem node callback to do what you have to do ... Pierre On 12/29/2014 11:21 AM, Colin Doncaster wrote: Do you mean outside of Nukes evaluation but still within the application or do you want to link against ddImage.so and call Nuke Ops? On Dec 29, 2014, at 1:46 PM, Johannes Saam <[email protected]> wrote: Hey ! Merry christmas everyone :) I have a little bit of an RnD theoretical question.... Could we use nuke ops outside nuke? Meaning could i have an Iop input that i call validate request and engine on myself and feed it data? And of course get the data afterwards? Meaning could i use a nuke blur or even better a nuke network and use it to process other data that i specify? Its more of a theoretical one but any thoughts are greatly appreciated. Rock on jo _______________________________________________ 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 _______________________________________________ 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
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
