Few more questions on this topic.

I got my path split now into a list using;  wPath.split('/')[:2]
That returns a list; ['C:', 'shotFolder']
How do I add another item to the list?  I try just += a string variable but 
each character is treated as a string in the list giving me; ['C:', 
'shotFolder', 'r', 'e', 'n', 'd', 'e', 'r']
There's some kind of concatenation syntax I'm missing.


Also, if I have a filename like "01_sweetTree_v001.nk".  What's the easiest way 
to get rid of ".nk"?  That way I'm left with just the filename, 
"01_sweetTree_v001"?



_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to