# Rs python script example

**URL:** <https://discourse.mcneel.com/t/rs-python-script-example/82764>\
**Category:** Grasshopper\
**Created:** [May 3, 2019, 9:35am UTC](https://discourse.mcneel.com/t/rs-python-script-example/82764 "2019-05-03T09:35:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![AndersDeleuran](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andersdeleuran/32/476683_2.png) [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Post date:** [May 3, 2019, 10:32am UTC](https://discourse.mcneel.com/t/rs-python-script-example/82764/3 "2019-05-03T10:32:05Z")

</div>

> [@antho2b](#):
>
> I thought it will be easy to find, but not…  
> I’am looking for some basic python rhino script command example…

Have a look at the `rhinoscriptsyntax` documentation:

[https://developer.rhino3d.com/api/RhinoScriptSyntax/](https://developer.rhino3d.com/api/RhinoScriptSyntax/)

Most of these come with an example. Also, be aware that you must set the script context to target the Rhino document explicitly when baking to it from GHPython (see [this thread](https://discourse.mcneel.com/t/python-script-bakes-itself-automatically/82496/5) for instance).

---

_[View the full topic](https://discourse.mcneel.com/t/rs-python-script-example/82764)._
