BILL GILMAN
PROLOGUE
NUKE 6.3v5
OSX 10.6.4
Hello all
I'm using this code in my init.py to auto create directories from Write nodes
if they don't already exist:
--
def create_nuke_dirs():
file = nuke.filename(nuke.thisNode())
dir = os.path.dirname( os.path.abspath(file) )
osdir = nuke.callbacks.filenameFilter( dir )
if not os.path.exists(osdir):
os.makedirs( osdir )
nuke.addBeforeRender(create_nuke_dirs)
--
It does't seem to work with the %V variable used for stereo output. Instead
of evaluating the variable and creating a left and a right directory, it just
creates one marked %V.
shot/001/output_%V/take_%V.dpx *should* create two directories:
shot/001/output_left/take_left.dpx and shot/001/output_right/take_right.dpx
instead, it just creates this directory (but note the filename):
shot/001/output_%V and then can't find the directory it's looking for (ie.
output_left or output_right)
Is there a way to make this work? Does a case have to be created specifically
for %V? Technically there could be more than just left & right, as the manual
says "left or right (or any other full view names)."
Please advise, and thanks
Bill
323-428-0913
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users