Trees | Indices | Help |
|
---|
|
1 # Copyright (c) 2009 The Foundry Visionmongers Ltd. All Rights Reserved. 2 3 import nuke 46 f = nuke.frame() 7 p = nuke.Panel("Goto Frame") 8 p.addSingleLineInput("Frame:", f) 9 result = p.show() 10 if result == 1: 11 nuke.frame(int(nuke.expression(p.value("Frame:"))))12 13 14 import re16 '''replaceHashes(filename) -> string 17 Replace any sequences of 1 or more hash marks (#) with a printf-style %0nd specifier.''' 18 def _hashRepl(matchobj): 19 return "%%0%dd" % len(matchobj.group(0))20 _pat = re.compile(r'(\#+)') 21 return re.sub(_pat, _hashRepl, filename) 22
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 30 18:46:44 2017 | http://epydoc.sourceforge.net |