This is the repository for the RhinoScriptSyntax. This is a library of python scripts used by the python scripting engine in Rhinoceros and Grasshopper. For details on using python, go to Rhino.Python including Guides, Samples and Documentation.
Discussions for help on using these scripts can be found at: Rhino Scripting Forum
There are many ways to contribute to this project:
- Become active on the RhinoPython discussion forum at Rhino Scripting Forum
- Report bugs/wishes to the issue list at http://mcneel.myjetbrains.com/youtrack/dashboard
- Directly edit the source code using git. If you need help with this, please let us know.
You are going to need either:
- The latest Rhino5 WIP (http://www.rhino3d.com/nr.htm)
- The latest Mac Rhino WIP (http://mac.rhino3d.com/)
Start Rhino and run EditPythonScript or RunPythonScript. This will cause the python plug-in for Rhino to unpack the scripts defined in this project to your computer. Every new build of Rhino5 contains the latest version of the scripts in this project. The scripts on this site can be updated in between new versions of Rhino, permitting for new python functions without waiting for a new Rhino build. This is when you may want to get the latest changes from here.
Here are some instructions on copying the python source code from this site to your local computer. http://python.rhino3d.com/threads/430-Wish-rs.PointClosestObject
Use the tools/convert_py2to3.py
to convert the python files under Scripts/
to python 3 compatible files under python3/
. To do this using pipenv
:
# one time only to setup pipenv environment and packages
pipenv install
# to convert the files
pipenv run convert
Steve Baer - https://github.com/sbaer steve@mcneel.com
Copyright (c) 2011 Robert McNeel & Associates. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software.
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.
Rhinoceros is a registered trademark of Robert McNeel & Associates.