I wanted to avoid that, as it should only apply to the write notes defined by Nuke Studio. The other issue is that if the artist have created a new version but have not rendered, the folder would not be there and then the Nuke Studio background render would fail.
I guess we might end up writing out own export moduel so we can do stuff like this. Another thing that annoys me with Nuke Studio (and Hiero for that sake) is that they strip the position and link data from custom nodes (if you want to add custom nodes to your export). So all the node layouts you have made will be made into a single top-buttom line, and some nodes linked incorrectly. On Thu, Nov 27, 2014 at 7:55 PM, Tommaso Fioretti < [email protected]> wrote: > You can just add those lines in your init.py > > def createWriteDir(): > import nuke, os > file = nuke.filename(nuke.thisNode()) > dir = os.path.dirname( file ) > osdir = nuke.callbacks.filenameFilter( dir ) > try: > os.makedirs( osdir ) > return > except: > return > > nuke.addBeforeRender( createWriteDir ) > > 2014-11-27 19:49 GMT+01:00 Ron Ganbar <[email protected]>: > >> This whole issue of the folder not being created has always annoyed me. >> Should be automatic, in my opinion. Or at least there can be a checkbox in >> the Write "automatically create path / don't overwrite existing". >> >> >> >> Ron Ganbar >> email: [email protected] >> tel: +44 (0)7968 007 309 [UK] >> +972 (0)54 255 9765 [Israel] >> url: http://ronganbar.wordpress.com/ >> >> On Thu, Nov 27, 2014 at 8:47 PM, Mads Hagbarth Lund <[email protected]> >> wrote: >> >>> I don't think you can do that from Nuke Studio. I mean... You can't make >>> it put some code into the prerender bar. >>> >>> Den 27/11/2014 kl. 18.36 skrev Elias Ericsson Rydberg < >>> [email protected]>: >>> >>> I haven't tried studio, but could you not write a a preRenderScript? >>> Check if the path exists, otherwise create it. >>> Den 27 nov 2014 17:21 skrev "Mads Lund" <[email protected]>: >>> >>>> Hey guys. >>>> >>>> Nuke write nodes does not create folders by default. While its nice >>>> that in Nuke 9 it will bump the path folders to the same as the script >>>> version, it still doesn't create those folders, forcing the artists to >>>> create them by hand. (introducing human errors and what not) >>>> >>>> Back when we were doing our pipeline tools our selves directly inside >>>> Nuke, we would just make a custom write node that dealt with that. However >>>> Nuke Studio does not have a option to modify the write node. And there >>>> doesn't seem to be any build-in python calls to modify existing nuke >>>> scripts. >>>> >>>> So i am wondering how you guys are making sure that Nuke will create >>>> the folders needed every time your artists bump up the version number. And >>>> make sure that Nuke Studio don't get stuck because a render folder does not >>>> exist. >>>> >>>> >>>> >>>> _______________________________________________ >>>> Nuke-users mailing list >>>> [email protected], http://forums.thefoundry.co.uk/ >>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >>>> >>> _______________________________________________ >>> Nuke-users mailing list >>> [email protected], http://forums.thefoundry.co.uk/ >>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >>> >>> >>> _______________________________________________ >>> Nuke-users mailing list >>> [email protected], http://forums.thefoundry.co.uk/ >>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >>> >> >> >> _______________________________________________ >> Nuke-users mailing list >> [email protected], http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >> > > > > -- > *Tommaso Fioretti - Digital Compositor +393386786057 <%2B393386786057>* > > _______________________________________________ > Nuke-users mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
