This seems to be what I'm looking for, but I'm having a hard time putting it all together. If I'm creating my panel inside my menu.py instead of inside the module itself, will it work? Right now I'm getting this error:
Traceback (most recent call last): File "/home/bpjobin/.nuke/menu.py", line 133, in <module> test = panel.customKnob.getObject().widget AttributeError: 'NoneType' object has no attribute 'widget' menu.py : import functions panel = nukescripts.panels.registerWidgetAsPanel( 'test.Test', 'Test', "com.bpjobin.test", True) pane = nuke.getPaneFor("com.bpjobin.test") panel.addToPane(pane) test_panel = panel.customKnob.getObject().widget functions._nuke_set_zero_margins(test_panel) On Fri, May 19, 2017 at 9:21 AM, Fredrik Averpil <fred...@averpil.com> wrote: > Check out the "_nuke_set_zero_margins" function here: https://github.com/ > fredrikaverpil/pyvfx-boilerplate/blob/master/boilerplate.py > > > fre 19 maj 2017 kl. 14:55 skrev Bruno-Pierre Jobin <bpjo...@gmail.com>: > >> It helps a little bit (I'm gaining around 5px). When I compare to a >> python panel though, it too has that bezel. Maybe it's deeper inside Nuke >> styling? >> >> On Fri, May 19, 2017 at 2:14 AM, Frank Rueter|OHUfx <fr...@ohufx.com> >> wrote: >> >>> Have you tried setting your main widgets content margins to 0? >>> E.g.: >>> layout = QVBoxLayout() >>> layout.setContentsMargins(0,0,0,0) >>> >>> >>> >>> >>> On 18/05/17 8:10 AM, Bruno-Pierre Jobin wrote: >>> >>> Hi, >>> >>> I think this has been discussed before, but I can't find the thread. Is >>> there a way to make a PySide widget take up the full width and height of >>> the available space in a tab? >>> >>> >>> >>> Thank you! >>> >>> -- >>> Bruno-Pierre Jobin >>> www.bpjobin.com >>> >>> >>> _______________________________________________ >>> Nuke-python mailing listnuke-pyt...@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 >>> >>> >> >> >> -- >> Bruno-Pierre Jobin >> www.bpjobin.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 > > -- Bruno-Pierre Jobin www.bpjobin.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