# How to piggyback on tk-flame integration?

**URL:** <https://community.shotgridsoftware.com/t/how-to-piggyback-on-tk-flame-integration/13958>\
**Category:** Pipeline Integrations\
**Tags:** fptr-tk\
**Created:** [November 9, 2021, 8:10pm UTC](https://community.shotgridsoftware.com/t/how-to-piggyback-on-tk-flame-integration/13958 "2021-11-09T20:10:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![garyo](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@garyo](https://community.shotgridsoftware.com/u/garyo)\
**Post date:** [November 9, 2021, 8:10pm UTC](https://community.shotgridsoftware.com/t/how-to-piggyback-on-tk-flame-integration/13958/1 "2021-11-09T20:10:02Z")

</div>

I need to run my own python code with shotgun’s metadata when Flame loads a project or batch. I think I need to add my own `actions.py` and `info.yml`, but where exactly, and what base classes should I inherit from? I just need to record the sg project/shot info when flame loads a batch setup. I’ve looked at tk-flame\_actions.py; I want to do something like that or have that code call me.  
I’m good with python and Flame, but new at Shotgun. Trying to figure out the whole sg + flame toolkit architecture is complicated.  
Anyone using this who can point me in the right direction?
