When creating attributes of type string in python, they are not initialized with default values. Therefore, you must first create an attribute, and then set the value to it:

This is a simple python script to change file paths in selected Read and Write nodes. You can select part of the Nuke script, and if the selected nodes have a "file" knob, it will be changed:

Hey! Sometimes I make useful RNDs. The core of most of them is Python. But not always. Nevertheless, I started a new category - Scripts. The results of my interesting RNDs will be posted here. I hope someday they'll help someone as well as they helped me. Also you can look at Python tag from … Continue reading "About Scripts"