Hi,
has anyone come up with a solution for this yet? There is a thread in
the nuke-user list back from november, but no real solution was found.
For nuke and nuke x, I'm calling this function (it is within my own module):
def createWriteDir():
import os
file = nuke.filename(nuke.thisNode())
dir = os.path.dirname( file )
osdir = nuke.callbacks.filenameFilter( dir )
if os.path.exists(osdir) == False:
if nuke.ask(osdir+"\nOutput dir does not exist. Create?"):
os.makedirs( osdir )
I'm calling it from init.py:
nuke.addBeforeRender(fustoms.createWriteDir)
This seems not to work for Nuke Studio when rendering from the timeline
- which is really annoying...
Any help highly appreciated! Thank you,
Fabian
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python