Hey,
I am wondering why the tk-nuke-writenode is behaving differently, whenever I am running my script in a non-gui session.
for example:
running nuke in gui, inside the Script Editor
mf = "/tmp/myfile.nk"
nuke.scriptOpen(mf)
node = nuke.toNode("ShotgunWrite1")
print(len(node.allKnobs()))
>>> 101
running in the same env using the command nuke -tgi --nukex
mf = "/tmp/myfile.nk"
nuke.scriptOpen(mf)
node = nuke.toNode("ShotgunWrite1")
print(len(node.allKnobs()))
>>> 35
Without the node.knob("cached_path")
knob the tk-nuke-writenode unfortunately stops working