Many thanks Sebastian, I solved the mystery at hand with your re syntax. :)
Best Regards, Fredrik On Fri, Nov 11, 2011 at 3:25 PM, Sebastian Kral <[email protected]>wrote: > Hi, > > here is the whole example: > > > import re > import nuke > > > fileKnob = nuke.selectedNode().knob('file').value() > reMatch = re.search('(#+)|(%\d\d?d)', fileKnob) > > if reMatch: > print reMatch.group(0) > > > Hope that gets you started. > > Best > > Sebastian > >
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
