Perfect! Thanks Colin. That was exactly what I was after and has got things back to a usable speed.

Steve


Colin Doncaster wrote:
You can use memset to set ( reset ) a whole rows values to black - remember that nuke gives you the pointer to x = 0 but engine may have only validated between x and r so you need to accommodate for those ( and all of your channels ).
row_ptr = row->writable(z);
memset(row_ptr + x, 0, (r - x) * sizeof(float));

As for draw_engine, DrawIop inherits from Iop so request could be used to precompute your values.
cheers.

*/
*/
*/--
Colin Doncaster/*
*/
*/
*/Peregrine Labs/*
/*
/*
*/
*/
www.peregrinelabs.com <http://www.peregrinelabs.com>
/*
/*
/*
/*

On 2011-03-12, at 9:54 AM, Stephen Newbold wrote:

Apologies for dragging this subject back up but there's still a few things I need to get clear on.

Ok, so I have a my vector full of points defining a curve that I'm pre-processing using a locked thread. I'm able to sort the vector to an upper/lower_bound as mentioned by Colin so I don't have to iterate through every point which speeds things up a bit. So essentially,


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

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

Reply via email to