Hum I had a try; the callback is called properly but the hideControlPanel() doesn't have any effect. Could it be that the callback is executed before the panel is shown ?
Anyway, here is a workaround that work for me : def hidePanel(): nuke.thisNode().showControlPanel() nuke.thisNode().hideControlPanel() nuke.addOnUserCreate(hidePanel) Basically you force showing the panel first before closing it.. Cheers, J 2016-11-16 15:52 GMT+00:00 Bruno-Pierre Jobin <bpjo...@gmail.com>: > I want all node that are created manually from the GUI to have their panel > hidden. Justin’s technique seemed to be what I am looking for but it is not > working. > > On Nov 16, 2016, at 10:44 AM, Vincent Langer <m...@vincentlanger.com> > wrote: > > But if you want to use createNode you could use: > > nuke.createNode("Blur",inpanel=False) > > 2016-11-16 16:43 GMT+01:00 Vincent Langer <m...@vincentlanger.com>: > >> how are you creating your nodes? >> >> nuke.nodes.Blur() >> for example does not open the property panel >> >> nuke.createNode("Blur") >> does open property panel >> >> cheers, >> Vincent >> >> 2016-11-16 16:31 GMT+01:00 Bruno-Pierre Jobin <bpjo...@gmail.com>: >> >>> Hello, >>> >>> I’d like to add a callback that acts on every nodes and sets their >>> property panel NOT to show up on creation. Any idea how I should achieve >>> this? >>> >>> Thank you_______________________________________________ >>> 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 >>> >> >> >> >> -- >> Vincent Langer >> Uhlandstr. 29 >> 71634 Ludwigsburg >> +49 176 965 177 61 >> www.vincentlanger.com >> > > > > -- > Vincent Langer > Uhlandstr. 29 > 71634 Ludwigsburg > +49 176 965 177 61 > www.vincentlanger.com > _______________________________________________ > 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 > >
_______________________________________________ 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