Ok now I got it to work when it is at the root of my .nuke folder... but I would like to have it to work from the "tcl" folder... I'll show you everything so you understand the current setup and help me further...
here is a screenshot of my Danny menu:
here is my init.py:
nuke.pluginAddPath('.\gizmos')
nuke.pluginAddPath('.\icons')
nuke.pluginAddPath('.\python')
nuke.pluginAddPath('.\tcl')
here is my menu.py:
import autobackdrop
import mocha_import
toolbar = nuke.menu('Nodes')
dannyMenu = toolbar.addMenu('Danny', icon='homefx.png')
toolbar.addCommand('Danny/Auto Backdrop', 'autobackdrop.autoBackdrop()', 'alt+b', icon='Backdrop.png')
toolbar.addCommand('Danny/Bleach Bypass', 'nuke.createNode("bleachbypass")', icon='bleachbypass.png')
toolbar.addCommand('Danny/Boujou Lens Distortion', 'nuke.createNode("boujoulens")', icon='boujoulens.png')
toolbar.addCommand('Danny/CamQuake', 'nuke.createNode("camquake")', icon='camquake.png')
toolbar.addCommand('Danny/Edge Blender', 'nuke.createNode("edgeblender")', icon='Backdrop.png')
toolbar.addCommand('Danny/FieldsKit', 'nuke.createNode("fieldskit")', icon='fieldskit.png')
toolbar.addCommand('Danny/Film Look', 'nuke.createNode("filmlook")', icon='filmlook.png')
toolbar.addCommand('Danny/Fix 4:1:1 Color Sampling', 'nuke.createNode("fix411cs")', icon='fix411cs.png')
toolbar.addCommand('Danny/Guides', 'nuke.createNode("guides")', icon='guides.png')
toolbar.addCommand('Danny/Heat Haze', 'nuke.createNode("heathaze")', icon='Backdrop.png')
toolbar.addCommand('Danny/iFilter', 'nuke.createNode("ifilter")', icon='Backdrop.png')
toolbar.addCommand('Danny/Import ssf', 'import_ssf()', icon='Bezier.png', index=8 )
toolbar.addCommand('Danny/Letterbox', 'nuke.createNode("letterbox")', icon='letterbox.png')
toolbar.addCommand('Danny/Mocha Import', 'mocha_import.mocha_import()', icon='mocha_import.png')
toolbar.addCommand('Danny/Slice Tool', 'nuke.createNode("slicetool")', icon='slicetool.png')
toolbar.addCommand('Danny/Technicolor', 'nuke.createNode("technicolor")', icon='Backdrop.png')
def import_ssf():
files = nuke.getClipname( 'Import ssf (Shake Shape Format)', '*.ssf', multiple=True )
if files:
for f in files:
try:
ssf = 'import_ssf "%s"' % f
nuke.tcl( ssf )
except:
raise RuntimeError( 'To read ssf file you need the ssf_import.tcl installed\nGet it a www.fxshare.com/nuke' )
what do I need to do in order to have it running from that folder???:
C:\Documents and Settings\danny\.nuke\tcl
thx!
D