1) Make sure _validate() is being called on your Op for the frame changes, if 
not include the frame number in the Op::append() hash result.  Also include the 
frame number in GeoOp::get_geometry_hash() for the geometry groups affected by 
the frame change.

2) You can use _validate() to do that, but it's going to seriously slow down 
Nuke's evaluation unless you're careful as _validate() gets called *a lot*.  
None of the other image oriented calls like open(), close(), etc are available 
to GeoOps.

   // first make sure the base class _validate() is called, then:
   if (!scene_) scene_ = new Scene(); // create the local scene cache owned by 
this GeoOp
   build_scene(scene_); // build the scene


-jonathan

On May 10, 2011, at 6:09 AM, Kent Martin wrote:

> 
> 
> 
> Greetings Nuke-dev,
> 
> I am working on a plugin that creates geometry from image data.
> I am using a SourceGeo class.
> I have successfully constructed the geometry.
> It updates as expected when the input knobs are changed.
> 
> Question #1:
> This geometry needs to be re-created on a time change.
> I am looking for the mechanism to trigger a call to create_geometry when the 
> current time changes.
> 
> Question #2:
> The geometry builds only after a 3D viewer is invoked.
> Is there a method to force the geometry to build when the node is connected, 
> regardless of the state of the viewers.
> 
> 
> Thanks,
> 
> Kent Martin
> Blue Sky Studios
> 
> 
> _______________________________________________
> 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