IconPanel v1.1
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Frank Rueter
show the default icons along with the required syntax for use in labels
Requirements:
6.0, 6.1, 6.2 or later
Linux, Mac, Windows
6.0, 6.1, 6.2 or later
Linux, Mac, Windows
23 May 2011
576
v1.1 added the missing imports
This is a little panel that shows Nuke's default icons and the syntax required to use them in custom labels for your own scripted UIs.
At the moment the used icons are hard coded which is rather ugly but works for now.
Put this into your menu.py and you will find the "Universal Icons" panel in the panel menu.
1 |
import IconPanel |
Please login in order to download these files.
Comments
If I install this python including the menu code I get an error that 'paneMenu' is not defined. I can easily fix that by making paneMenu = nuke.menu('Pane '). However, I then get the following error message that I have not been able to figure out. Can you shed some light on this for me?
Traceback (most recent call last):
File "/EEP/Home/dros en/.nuke/menu.p y", line 6, in addIconPanel
iconPanel = OhuPanels.IconPanel()
NameError: global name 'OhuPanels' is not defined
And you need to import IconPanel first.
I have updated the description now. Thanks for letting me know.
I've installed this but it return me an error:
Traceback (most recent call last):
File "/Users/victorp erez/.nuke/menu .py", line 124, in addIconPanel
iconPanel = IconPanel.IconP anel()
File "/Users/victorp erez/.nuke/pyth on/IconPanel.py ", line 20, in __init__
tab = nuke.Tab_Knob( str(index), str(index) )
NameError: global name 'nuke' is not defined
Traceback (most recent call last):
File "/Users/victorp erez/.nuke/menu .py", line 124, in addIconPanel
iconPanel = IconPanel.IconP anel()
File "/Users/victorp erez/.nuke/pyth on/IconPanel.py ", line 20, in __init__
tab = nuke.Tab_Knob( str(index), str(index) )
NameError: global name 'nuke' is not defined
Any idea why this?
Thanks!
nukescripts.reg isterPanel('com .ohufx.iconPane l', addIconPanel) should have a capital "I" in "IconPanel".
In my case I imported the 'nuke' and 'os' modules within 'IconPanel.py' to make it work:
import nuke
import os
Now it's working fine... and it's very nice
Thanks again
the "i" in the register command shouldn't matter as it's just an arbitrary name that you choose to register the particular function (unless I'm mistaken).
Thanks for pointing this out to me!
RSS feed for comments to this post