Ohh, I completely forgot about that append method. That works, thanks!

On 24/10/11 22:39, Abigail Brady wrote:
> 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
> 
> 

-- 
ben dickson
2D TD | [email protected]
rising sun pictures | www.rsp.com.au
_______________________________________________
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