Create render folders if they do not exist
To prevent your write nodes throwing “no such file or directory” errors, paste this bit of code into the python – before render section of the write:
1 2 3 |
import os if not os.path.isdir(os.path.dirname(nuke.thisNode()['file'].evaluate())): os.makedirs(os.path.dirname(nuke.thisNode()['file'].evaluate())) |
Split and use topnode’s filename Creating Procedural Textures via UV-Map with Expression-Node