Encoding the character to UTF-8 seems to work (although my keyboard doesn't have the key to actually test it functions):

nuke.menu("Nodes").addCommand(
  "Test/TestCommand",
  lambda: nuke.message("Test"),
  u'\xa7'.encode("utf-8"),
)

On 27/04/16 23:44, Erik Johansson wrote:
Trying to setup the section sign ยง as a keyboard shortcut but nuke keeps
erroring that it is not a valid ascii char.

Anyone happen to know a workaround?

// E

--

*Erik Johansson
*/Pipeline TD/

*Fido
*Rosenlundsgatan 40
118 53 Stockholm, Sweden
www.fido.se <http://www.fido.se/>



_______________________________________________
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


--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
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