Could you just redefine nuke.createNode?: oldcreatenode = nuke.createNode def myCreateNode(nodeType,args="",inpanel=False): oldcreatenode(nodeType,args,inpanel)
nuke.createNode = myCreateNode ----- Original Message ----- | From: "Bruno-Pierre Jobin" <bpjo...@gmail.com> | To: "Nuke Python discussion" <nuke-python@support.thefoundry.co.uk> | Sent: Wednesday, November 16, 2016 12:10:30 PM | Subject: Re: [Nuke-python] inPanel=False for all created nodes | 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 > | | : | | | | 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 | | _______________________________________________ | Nuke-python mailing list | Nuke-python@support.thefoundry.co.uk, | https://urldefense.proofpoint.com/v2/url?u=http-3A__forums.thefoundry.co.uk_&d=DQICAg&c=hHkK43hKb5uKUGaYMJ-p252cFdfVBHtyegDvswk59fU&r=hdh6ldFziktt1N0wAi7bK3Mjov-6LjULd6ZgRd44U6s&m=DG4MqhCIGooTZLk_2aK8IWYP-2Q6ueZGMC-o0PbIKvE&s=MqbQQKUQ_eTP_pthIe-xUktc0zsuibB3f6dPHHAsTqM&e= | https://urldefense.proofpoint.com/v2/url?u=http-3A__support.thefoundry.co.uk_cgi-2Dbin_mailman_listinfo_nuke-2Dpython&d=DQICAg&c=hHkK43hKb5uKUGaYMJ-p252cFdfVBHtyegDvswk59fU&r=hdh6ldFziktt1N0wAi7bK3Mjov-6LjULd6ZgRd44U6s&m=DG4MqhCIGooTZLk_2aK8IWYP-2Q6ueZGMC-o0PbIKvE&s=zHUSoY-m7N6v-uoQXfL2piAClZ1mFgg5-mc_hYkIVW4&e=
_______________________________________________ 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