Problem summary
Double quotes " are not evaluated correctly when running Python commands through TCL after the first variable. So if you use "" on a variable after the first variable, Nuke does not evaluate the expression, however if you run the same coding the script editor, then is evaluates correctly.
Customer reported version
nuke.10.0v1
Customer reported platform
Steps to reproduce
1) Open Nuke
2) In the Script Editor, run the below code:
class classyClass(object): def _run(self, *args): return argsfooBar = classyClass()
Reproduced by support
I have reproduced the issue on every version of Nuke I tested:
Nuke 7.0v10 Windows 10, Mac OSX 10.11 (This version erred saying "missing close-bracket", no other version did this)
Nuke 8.0v1 Windows 10, Mac OSX 10.11, Linux CentOS 6.7
Nuke 8.0v6 Windows 10, Mac OSX 10.11, Linux CentOS 6.7
Nuke 9.0v1 Windows 10, Mac OSX 10.11, Linux CentOS 6.7
Nuke 9.0v8 Windows 10, Mac OSX 10.11, Linux CentOS 6.7
Nuke 10.0v1 Windows 10, Mac OSX 10.11, Linux CentOS 6.7
Expected behaviour
For Nuke to return the given variables, no matter which quotes are used.
Actual behaviour
If any variable past the first one used double quotes, then the expression would not evaluate.