nuke.addValidateFilename
- nuke.addValidateFilename(call, args=(), kwargs={}, nodeClass='Write')[source]
Add a function to validate a filename in Write nodes. The first argument is the filename and it should return a Boolean as to whether the filename is valid or not. If a callback is provided, it will control whether the Render button of Write nodes and the Execute button of WriteGeo nodes is enabled or not.