I’m guessing you’re copying the text out of the PDF in which the curve 
expression is distributed. Unless you sanitize it yourself, you’ll end up with 
these illegal characters.

However, Nuke has this curve included by default ('AlexaV3LogC'), so there’s no 
reason to add it yourself.

-Nathan



From: smartyarts 
Sent: Wednesday, February 27, 2013 5:42 AM
To: nuke-python@support.thefoundry.co.uk 
Subject: [Nuke-python] Integrating Alexa LUT into Nuke

Hi fellows,

I don't know if this is the right forum to post this topic into but I guess 
it's the closest that comes to my mind.

I have downloaded the arri alexa nuke color pipeline pdf and there it tells me 
to put the following code into my init.py:

      Code:  
      #custom input/output LUTs
      nuke.root().knob('luts').addCurve("AlexaV3LogC", "{ (t > 0.1496582 ? 
pow(10.0, (t - 0.385537) / 0.2471896) : t / 0.9661776 – 0.04378604) * 0.18 - 
0.00937677 }")
      # ViewerProcess LUTs
      nuke.ViewerProcess.register("AlexaV3Rec709", nuke.createNode, 
("Vectorfield", "vfield_file 
C:/Users/admin/.nuke/luts/AlexaV3_EI0800_LogC2Video_Rec709_EE_nuke3d.cube 
colorspaceIn AlexaV3LogC"))  


Afterwards my Nuke will not start anymore. The nuke console will give me that 
error:
SyntaxError: Non-ASCII character '\x96' in file C:/Users/admin/.nuke/init.py on 
line 17, but no encoding declared; see http://www.python.org/peps/pep-0263.html 
for details

This line is meant:
nuke.root().knob('luts').addCurve("AlexaV3LogC", "{ (t > 0.1496582 ? pow(10.0, 
(t - 0.385537) / 0.2471896) : t / 0.9661776 – 0.04378604) * 0.18 - 0.00937677 
}")

So I removed everything in curly brackets with an empty space. After that Nuke 
starts normally again and I can select the new added viewer LUT.

Apparently what was in curly brackets seems to cause the crash. Does anyone 
know what's wrong with the statement in the brackets and how the statement 
should actually be or do I need them at all?

Any help is really appreciated.

kind regards
smarty


--------------------------------------------------------------------------------
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to