Hmm, not really as I say it needs to be in a self-contained python script embedded in the scanline renderer itself. You can get a decent 'live' min/max using the dilate/erode trick or just write a custom plugin to do this nice and fast but I can't go there for this.

Steve

Hugo Léveillé wrote:
Lazy answer but would using to curve tool to extract max data be an
option instead of looping pixels?

On Thu, Jul 12, 2012, at 13:46, Stephen Newbold wrote:
Hi, I have a tool that needs to obtain the maximum velocity value from a scanline renderer. Currently I am finding the max pixel value of the motion channel generated by the scanline renderer by iterating through each pixel of the motion channel and returning the max(). A basic but inaccurate optimisation is to skip x pixels to speed this up but I was hoping there might be a more cunning way of doing this?

I'm presuming the Scanline Renderer itself doesn't store min/max velocities in a hidden knob or something else accessible?

I was hoping to keep this process live and contained in an embedded python script, so using NDK or a node tree (dilate to value of width of image worked well enough if I went this method) so any suggestions are welcome.

Steve

--
Stephen Newbold
Compositing Lead - Film
MPC
127 Wardour Street
Soho, London, W1F 0NL
Main - + 44 (0) 20 7434 3100
www.moving-picture.com

_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python




--
Stephen Newbold
Compositing Lead - Film
MPC
127 Wardour Street
Soho, London, W1F 0NL
Main - + 44 (0) 20 7434 3100
www.moving-picture.com

_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to