If you want to make an analyses of all sequence firstly, you should
add a button knob, and make analyses of button click event. You should
do this in case you do not know, which frames a current frames depends
from.

If I understood "duplicate" correctly, it mean, plugin should output
frame n at time n if n < x for some x and frame n-1 for time n if
n>=x. For exmaple, if x=3, plugin outputs frames 0,1,2,3,3,4,5,6...
This can be obtained by specifying next function:

virtual DD::Image::OutputContext & Op::inputContext ( int n, int
offset, DD::Image::OutputContext& scratch ) const

for example:

class Plugin : public DD::Image::Iop {
double x;

....

virtual DD::Image::OutputContext & Op::inputContext ( int n, int
offset, DD::Image::OutputContext& scratch ) const {
  if( n!=0 ) return Iop::inputContext(n,offset,scratch);

  scratch = outputContext();
  if(scratch.frame()>=x) scratch.frame(scratch.frame()-1);

  return scratch;
}

....

};

2012/9/28 cluedo <[email protected]>:
> Thank you for the reply! I'll look into the DD::Image::Execute class.
>
> To explain a little further - I want to look at the contents of each frame
> and analyse it. Depending on the outcome of this analysis I may want to
> delete that frame from the sequence altogether, or add a new frame into the
> sequence using the content of the original frame (duplicate the frame).
>
> I hope that make more sense? Are there methods available to do this?
>
> Thanks very much!
>
> _______________________________________________
> 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