If I remember correctly from an older post, this was a regression in 6.1,
and has been logged as a bug.
The same approach used to work in 6.0.

While this is broken, I believe Ben's suggestion is the best way to avoid
this issue. Just turn your gizmo into a "grouzmo" by editing the .gizmo file
as he mentioned, which will allow you to call the node the same way you
would with a gizmo, but create a group instead, meaning everything inside it
will be saved with the script, and you avoid the need for an onCreate or
onScriptLoad callback altogether.


On Wed, Apr 13, 2011 at 4:49 AM, Ben Dickson <[email protected]> wrote:

> The usual solution to dynamic gizmo'y nodes is to use a group, then the
> PyScript button (or callback etc) which clears and rebuilds the content
>
> You can export your Group as a gizmo, as usual, then edit the file in a
> text editor, replacing the first "Gizmo {" with "Group {"
>
> Avoids having to worry about rebuilding the contents on script load,
> things like losing the input connections..
>
> Bertrand Lempereur wrote:
> > I have been looking for dynamic node creation "Shake like" inside a
> > Gizmo and i find a post in archive about a Gizmo called TimeMachine. I
> > study it and begin to create some Gizmo with this method. But after
> > digging in a little, i see that such node don't keep the input
> > connection when you reload your script or when you duplicate a group of
> > node with such node in.
> > Any idea on how to solve this?
> >
> > Regards,
> >
> > Bertrand Lempereur
> > TD at MikrosImage
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Nuke-python mailing list
> > [email protected]
> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
> --
> ben dickson
> 2D TD | [email protected]
> rising sun pictures | www.rsp.com.au
> _______________________________________________
> Nuke-python mailing list
> [email protected]
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to