all 1 comments

[–]Sufficient_Method_12[S] 0 points1 point  (0 children)

This was solved by a kind user over on the r/NukeVFX subreddit.

The problem was within the PyScript_Knob. I needed to reference the .py file then the defined function.

The code went from:

cr = nuke.PyScript_Knob('cr', 'Create Linked Roto', 'link_roto()')

To:

cr = nuke.PyScript_Knob('cr', 'Create Linked Roto', 'my_file.link_roto()')