# RV Python documentation

**URL:** <https://community.shotgridsoftware.com/t/rv-python-documentation/13040>\
**Category:** RV\
**Created:** [July 26, 2021, 1:26pm UTC](https://community.shotgridsoftware.com/t/rv-python-documentation/13040 "2021-07-26T13:26:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![efraimlangkous](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@efraimlangkous](https://community.shotgridsoftware.com/u/efraimlangkous)\
**Post date:** [July 26, 2021, 1:26pm UTC](https://community.shotgridsoftware.com/t/rv-python-documentation/13040/1 "2021-07-26T13:26:17Z")

</div>

Hello,

I’m trying to get started with Python and RV.

- Is there some sort of script editor / IDE I can launch in RV to try out Python commands?

- I can only seem to find a Mu reference guide, is there something similar for Python? Just a document launching all available commands, what they do and what kind of arguments the expect/accept.

- Lets say I want to assign a shortcut to a currently unassigned menu item. What would be the way to figure out what command is attached to that menu item? I’m currently searching through all files in the rv install directory, but it feels rather inefficient.

- Is there a place where people upload there custom packages? A bit like Nukepedia for RV?

I did some Googling, but it didn’t return much.

Thanks

---

<div class="post-metadata">

**Author:** ![ian.savoie](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ian.savoie/32/1375_2.png) [@ian.savoie](https://community.shotgridsoftware.com/u/ian.savoie)\
**Post date:** [July 27, 2021, 8:20pm UTC](https://community.shotgridsoftware.com/t/rv-python-documentation/13040/2 "2021-07-27T20:20:54Z")

</div>

Hi Efraim,

When launching RV, you will need to enable SG Toolkit to have access to the SG Python Console. You can do so by connecting RV to a ShotGrid website through the ‘ShotGrit / ShotGrid Connection Details’ menu inside RV. Once RV is connected to the website, you will have access to the SG Python Console by going through the ‘Tools / ShotGrid Python Console…’, always inside RV.

As for the commands that can be use, you can find the content by opening the ‘Help / Mu Command API Browser’.

There are some packages coming with RV that have purposed to give examples on how to build some scenarios inside your scripts/packages. I believe you can find an example on how to connect hotkeys with actions by looking at the content of the following package that is distributed with RV:

{RV\_ROOT}/plugins/Packages/pymystuff-1.1.rvpkg

You can also find more information about how to use RV packages by going through the following section of the RV Reference Manual:  
[https://help.autodesk.com/view/SGSUB/ENU/?guid=SG\_RV\_rv\_manuals\_rv\_reference\_manual\_chapter\_nine\_html](https://help.autodesk.com/view/SGSUB/ENU/?guid=SG_RV_rv_manuals_rv_reference_manual_chapter_nine_html)

Finally, you might also be interested by the following post made by Alexa on our community:

> [@How do I write my first package in RV?](https://community.shotgridsoftware.com/t/how-do-i-write-my-first-package-in-rv/96):
>
> RV can be nearly infinitely customizable but it can be difficult finding documentation for where to begin developing your own plugins. There are a couple of things that you should know. RV offers a couple of ways to write plugins: Mu, Python, PySide and GLSL. The best way to start with RV scripting is to use Python. Unfortunately, Python is not native to RV and most of “Python” commands that you will find in RV are bindings on top of Mu. However, this means that you can use nearly all command…

Hope this helps!

Thanks,  
Ian
