Nuke Auto Write Question

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  02 February 2013
Nuke Auto Write Question

Hey guys I'm having a bit of an issue with write nodes auto creating folders structures. I created a gizmo that has multiple write nodes within the gizmo that turn on and off depending upon different settings checked on or off. In each of the write nodes "before render" slot I have this python script:

def createWriteDir():
import nuke, os
import re
#view = nuke.thisView()
views = nuke.views()
file = nuke.filename(nuke.thisNode())
dir = os.path.dirname(file)
viewdirs = []
if'%V', dir).group(): # replacing %V with view name
for v in views:
viewdirs.append(re.sub('%V', v, dir))
if len(viewdirs) == 0:
osdir = nuke.callbacks.filenameFilter(dir)
if not os.path.isdir(osdir):
os.makedirs (osdir)
for vd in viewdirs:
osdir = nuke.callbacks.filenameFilter(vd)
if not os.path.isdir(osdir):
os.makedirs (osdir)
print 'Directory (with viewname) created: %s' % (osdir)

The problem I'm having is when a write node is disabled within the gizmo it still creates an unwanted folder structure though it wont write any frames. Anyone have any ideas?

Thanks for the help!
  02 February 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 11:13 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.