Hi Olivier - unless I'm misunderstanding, you can just create a text file
with the extension .gizmo and drop in your node txt, copy/pasted from the
DAG.

So, for example, if I wanted to make a "Stencil" gizmo that is just a merge
node set to stencil, I could just do it in the DAG, copy and paste it and
drop this into a "stencil.gizmo" txt file:

Merge2 {
 inputs 2
 operation stencil
 selected true
}

Nuke will correctly interpret that when you make calls to that gizmo in a
toolbar or a menu.  You're not tied to using that "create gizmo" button by
any means.




On Sat, Dec 8, 2012 at 10:30 AM, Hugo Léveillé <hu...@fastmail.net> wrote:

> putting nuke.root().begin() before your code should fix your problem
>
> On Fri, Dec 7, 2012, at 14:42, olivier...@moving-picture.com wrote:
> > Hiya,
> >
> > is there a 'straight forward' way to create a gizmo from a simple Node
> > without going to do it again on a group or rewrite it on python ?
> >
> > I used a NoOp node to create a few pyScripts, all fine. But i need to
> > share it now, and ToolSet is not an option.
> > I quicly recreated it on a Group node to have the gizmo export option,
> > but strangely none of my buttons are working in this group node.
> > Now my only option is to create a python script that recreate the node.
> > I can do it but it takes time and i don't really want to spend time
> > doing that when the node was doing a good job.
> >
> > So can we create a gizmo out of a simple node we modified (with no
> > export gizmo option)
> > If not, why can't we ???!!
> >
> > cheers
> > Olivier
> > _______________________________________________
> > Nuke-python mailing list
> > Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
> --
>   Hugo Léveillé
>   TD Compositing, Vision Globale
>   hu...@fastmail.net
>
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to