Indeed it works. But not for our particular case. I’ll explain a bit more. I 
have an artist here that sets its layout so that the DAG and the property panel 
are in the same pane. So whenever he creates a node, it switches to the 
property panel. He would prefer to call this panel by double clicking on the 
node instead of it being brought up each time he creates a node. So your method 
technically works, but it still brings up an empty property panel. 

I would prefer a callback that sets the “inPanel=False” flag on every created 
node. Is that possible? 

Thanks


> On Nov 16, 2016, at 11:17 AM, Justin GD <j.grosde...@gmail.com> wrote:
> 
> 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 
> <mailto: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 
>> <mailto: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 
>> <mailto: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 
>> <mailto: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 
>> <mailto:Nuke-python@support.thefoundry.co.uk>, 
>> http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/>
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python 
>> <http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python>
>> 
>> 
>> 
>> -- 
>> Vincent Langer
>> Uhlandstr. 29
>> 71634 Ludwigsburg
>> +49 176 965 177 61 <tel:%2B49%20176%20965%20177%2061>
>> www.vincentlanger.com <http://www.vincentlanger.com/>
>> 
>> 
>> 
>> -- 
>> Vincent Langer
>> Uhlandstr. 29
>> 71634 Ludwigsburg
>> +49 176 965 177 61 <tel:%2B49%20176%20965%20177%2061>
>> www.vincentlanger.com <http://www.vincentlanger.com/>
>> _______________________________________________
>> Nuke-python mailing list
>> Nuke-python@support.thefoundry.co.uk 
>> <mailto:Nuke-python@support.thefoundry.co.uk>, 
>> http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/>
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python 
>> <http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python>
> 
> 
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk 
> <mailto:Nuke-python@support.thefoundry.co.uk>, 
> http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/>
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python 
> <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

Reply via email to