Hey,
I'm having trouble figuring out the ‘script’ node (Script Sop).
A simple box with a script node results in the following error:
Python error: SyntaxError: ('invalid syntax', ('', 1, 1, ‘/home/bruno.kindt/Library/projects/UE__BoilerRoom/BoilerRoom/Shop/scripts/test.py\n’))
even if the file is empty or has a simple `print “foo”` line.
I'm a bit suspicious about the ‘\n’ after the filename in the error message.
SyntaxError in python Script Sop
2667 2 0- Bruno Kindt
- Member
- 4 posts
- Joined: 12月 2015
- Offline
- jlait
- スタッフ
- 6413 posts
- Joined: 7月 2005
- Offline
The contents of that line should be the script, not a path to the script. This matches the “Pre-Render Script” type script fields in the ROP operators.
Set the script to a
print ‘foo’
and you'll get the node printing foo when it cooks.
It is very confusing to have file choosers there; I'm not sure why we have them.
Set the script to a
print ‘foo’
and you'll get the node printing foo when it cooks.
It is very confusing to have file choosers there; I'm not sure why we have them.
- jlait
- スタッフ
- 6413 posts
- Joined: 7月 2005
- Offline
-
- Quick Links