Is Python scripting available on the Mac yet? How do I define/invoke scripts?
You can run Python scripts on the mac, but there is no editor/debugger available yet.
To run a script, use either RunPythonScript
and browse to the script (.py) file somewhere on the computer, or -RunPythonScript scriptfilename
where scriptfilename is the name of the script file stored on your computer in the python âScriptsâ folder. Right now that folder is a hidden folder, so itâs somewhat hard to navigate to.
Also: beware, the Python version currently on the Mac is not up to date, so some scripts that run in Windows will not run on Mac yet.
âMitch
a bit off topic but fwiw, that folder hasnât always been hidden on osx⌠starting with 10.7, it has been hidden by default⌠you can unhide it via terminal.app by entering:
chflags nohidden ~/Library/
in mavericks, theyâve made it a little more user friendly to unhide⌠click on your user folder in finder then View-> Show view options (âJ) âŚcheck the box âshow library folderâ
then the path to the scripts folder is
~(user)/ Library/ Application Support/ McNeel/ Rhinoceros/ Scripts
Thanks for that info Jeff! --Mitch
Thank you both.
FWIW Rhino may use its own Python. I wrote a pythonversion.py script which prints â2.7.5 (default, Aug 2 2013, 16:40:47) âŚâ locally, but â2.7.0 ()â when run with RunPythonScript.
Yes Rhino does run itâs own version of an embedded python interpreter.
Another interesting feature of the Finder in Mavericks is that by dropping down the âGoâ menu, youâll notice it doesnât show the Library folder, but if you you press the âOptionâ key it pops onto the list.