# Implement per-shot LUT in rv package

**URL:** <https://community.shotgridsoftware.com/t/implement-per-shot-lut-in-rv-package/3460>\
**Category:** RV\
**Created:** [October 21, 2019, 8:28pm UTC](https://community.shotgridsoftware.com/t/implement-per-shot-lut-in-rv-package/3460 "2019-10-21T20:28:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alexaz](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/alexaz/32/82_2.png) [@alexaz](https://community.shotgridsoftware.com/u/alexaz)\
**Post date:** [October 21, 2019, 10:53pm UTC](https://community.shotgridsoftware.com/t/implement-per-shot-lut-in-rv-package/3460/2 "2019-10-21T22:53:24Z")

</div>

Hey Ashish,

Thank you for messaging us!

If you take a look at the [Starting With OCIO guide](https://community.shotgridsoftware.com/t/getting-started-with-ocio-in-rv/372/7), there’s a starter script called `rv_ocio_setup_sample.py`. If you download it, you can see how to set context per-node.

For example, setting up the Look pipe group:

```auto
    elif (nodeType == "RVLookPipelineGroup"):
        # If our config has a Look named shot_specific_look and uses the
        # environment/context variable "$SHOT" to locate any required
        # files on disk, then this is what that would likely look like
        result = [
            {"nodeType" : "OCIOLook",
             "context" : {"SHOT" : os.environ.get("SHOT","def123")}
             "properties" : {
                 "ocio.function" : "look",
                 "ocio.inColorSpace" : OCIO.Constants.ROLE_SCENE_LINEAR,
                 "ocio_look.look" : "shot_specific_look"}}]

```

Note that context here is grabbed from the environment variable that is set:

```auto
"context" : {"SHOT" : os.environ.get("SHOT","def123")}

```

However, instead of the environment variable, you can set up a function to parse your metadata and set the context.

Hope this makes sense!

Thanks,  
Alexa

---

_[View the full topic](https://community.shotgridsoftware.com/t/implement-per-shot-lut-in-rv-package/3460)._
