When I try to run the OSL color script I get an 'Invalid Syntax' error. I've copied and pasted directly and double checke…

Forum Archive When I try to run the OSL color script I get an 'Invalid Syntax' error. I've copied and pasted directly and double checke…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6052
    lordgert
    Participant

      When I try to run the OSL color script I get an ‘Invalid Syntax’ error. I’ve copied and pasted directly and double checked – any ideas what’s wrong?

      #24843
      Jonathan Lampel
      Participant

        You don’t need to click on Run in order for the OSL script to work, instead just load it through the node editor. It’s throwing a syntax error because the text editor is expecting a Python script, and hitting Run Script will try to execute it using Python. 

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘When I try to run the OSL color script I get an 'Invalid Syntax' error. I've copied and pasted directly and double checke…’ is closed to new replies.