Maybe I can help with #1? Though I'm not sure if is the recommended way.

I also have a plugin that creates geometry from image data - using world P from the image, and UV channels etc. to map the result type thing.

I have a 'force update' knob, which enables

geo_hash[Group_Primitives].append(float(outputContext().frame()));

to get_geometry_hash

basically using a change in time to trigger an evaluation.

cheers,
grant

On 10/05/2011 11:09 PM, 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