# Python code to change layers while viewing an EXR file in RV

**URL:** <https://community.shotgridsoftware.com/t/python-code-to-change-layers-while-viewing-an-exr-file-in-rv/19921>\
**Category:** RV\
**Created:** [March 14, 2025, 6:16am UTC](https://community.shotgridsoftware.com/t/python-code-to-change-layers-while-viewing-an-exr-file-in-rv/19921 "2025-03-14T06:16:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samyang](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@samyang](https://community.shotgridsoftware.com/u/samyang)\
**Post date:** [March 14, 2025, 6:16am UTC](https://community.shotgridsoftware.com/t/python-code-to-change-layers-while-viewing-an-exr-file-in-rv/19921/1 "2025-03-14T06:16:57Z")

</div>

I have created an EXR file with multiple layers and want to switch between these layers using a Python script in RV. However, I am unable to determine where the layer information is stored. How should I approach this using Python?

---

<div class="post-metadata">

**Author:** ![jrab](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrab](https://community.shotgridsoftware.com/u/jrab)\
**Post date:** [March 19, 2025, 12:14pm UTC](https://community.shotgridsoftware.com/t/python-code-to-change-layers-while-viewing-an-exr-file-in-rv/19921/2 "2025-03-19T12:14:35Z")

</div>

have you enabled the LayerSelect mode package? It might already do what you are trying to do. If nothing else, it might help answer your question.
