On 05/09/2011 06:03 AM, Stephen Newbold wrote:
I'm sure this is something simple but my brain is fried this morning. If I have a process that is relatively expensive within '_validate()' used to define the region passed to my engine(), and I have a number of knobs that affect this process (ie, changing these knobs directly changes the result of the process) and a number of knobs that are irrelevant to the process, what the best way of making sure my process is only run when the correct knobs are changed but left alone otherwise?

I'm assuming I will wrap my process in a conditional statement, but not sure what's the best thing to check for?
You could maybe hash the values of the relevant subset of Knobs using DD::Image::Hash, and then just compare the hash value from last time to your new hash - and if it has changed then redo the calculation.
Hope that makes sense...
Cheers...
John

_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to