You also need to do override append() and do the same thing there, to
get the Ops to be distinct in the first place.  i.e. :

  void append(DD::Image::Hash& hash)
  {
    hash.append(outputContext().frame());
  }

On Mon, 2011-10-24 at 22:19 +1030, Ben Dickson wrote:
> If I have a ModifyGeo derived plugin, is there any way to have it update
> on each frame? As a terrible example, to set random position for all
> points, for each frame
> 
> The obvious thing solution is to do the following in get_geometry_hash():
> 
> geo_hash[DD::Image::Group_Points].append(outputContext().frame());
> 
> ..but this doesn't work, as _validate is never called, nor is anything
> further down the call-chain
> 
> The only way I could find was to have a knob with an expression of
> "[frame]", which then causes _validate to be called on frame change


-- 
Abigail Brady
The Foundry, 6th Floor, 48 Leicester Square, London. WC2H 7LT
Tel: +44 20 7968 6828 * Fax: +44 20 7930 8906
Web: www.thefoundry.co.uk

The Foundry Visionmongers Ltd
Registered in England and Wales No: 4642027

_______________________________________________
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