Try this script:
import nuke
import re
def checkScriptName(name):
���print name
���if not re.search( r'_[vV]\d{3}[.]', name ):
������raise Exception, 'No version found in script name or version does not
contain the three-digit number. \n Please use proper naming convention.'
���else: print 'all good'
nuke.knobDefault('onScriptSave', 'checkScriptName(nuke.root().name())')
------------------------
aleksey nagibin
composer | www.cgfww.com
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python