# Loader: New Tab for Context Sequence

**URL:** <https://community.shotgridsoftware.com/t/loader-new-tab-for-context-sequence/3332>\
**Category:** Pipeline Integrations\
**Tags:** toolkit\
**Created:** [October 10, 2019, 9:35pm UTC](https://community.shotgridsoftware.com/t/loader-new-tab-for-context-sequence/3332 "2019-10-10T21:35:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pritish.pixomondo](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@pritish.pixomondo](https://community.shotgridsoftware.com/u/pritish.pixomondo)\
**Post date:** [October 10, 2019, 9:35pm UTC](https://community.shotgridsoftware.com/t/loader-new-tab-for-context-sequence/3332/1 "2019-10-10T21:35:26Z")

</div>

Hi

We want to add a new tab in the loader which shows the all the data from shots in the the current sequence.

I could find a parent entity in the context object. This is the best I got to for the filter.

```
  - caption: Sequence
    entity_type: Task
    filters:
    - [project, is, '{context.project}']
    - [entity, is, '{context.entity}']
    hierarchy: [entity, content]

```

However this only shows the current shot only. How do I query for all the shots in the sequence?  
Ideally in that tab we want to exclude the current shot as `current_shot` has it’s own tab.

Cheers

Pritish

---

<div class="post-metadata">

**Author:** ![philip.scadding](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/philip.scadding/32/30_2.png) [@philip.scadding](https://community.shotgridsoftware.com/u/philip.scadding)\
**Post date:** [October 11, 2019, 9:22am UTC](https://community.shotgridsoftware.com/t/loader-new-tab-for-context-sequence/3332/3 "2019-10-11T09:22:32Z")

</div>

Hi Pritish

EDIT actually there is a way, posted below.

~~Unfortunately, I don’t see a way of doing this right now.  
The filter resolving here is fairly basic. Ideally, you would be able to do something like `context.entity.Shot.sg_sequence` or something like that, but we don’t support that here.  
I’ll pop a suggestion into the product team.~~  
Best  
Phil

---

<div class="post-metadata">

**Author:** ![philip.scadding](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/philip.scadding/32/30_2.png) [@philip.scadding](https://community.shotgridsoftware.com/u/philip.scadding)\
**Post date:** [October 11, 2019, 1:36pm UTC](https://community.shotgridsoftware.com/t/loader-new-tab-for-context-sequence/3332/5 "2019-10-11T13:36:46Z")

</div>

You can achieve this by doing the following:

```auto
- caption: Shots in Sequence
    type: Query
    entity_type: Task
    filters:
    - [entity.Shot.sg_sequence.Sequence.shots, is, "{context.entity}"]
    - [entity, is_not, "{context.entity}"]
    hierarchy: [entity, content]

```

Basically the filter is navigating up two levels from the Task to the Sequence and then asking if the current context entity (Shot) is in the list of the parent sequence’s shots.  
Thanks to @jfboismenu for finding the solution and pointing that out!

---

<div class="post-metadata">

**Author:** ![pritish.pixomondo](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@pritish.pixomondo](https://community.shotgridsoftware.com/u/pritish.pixomondo)\
**Post date:** [October 11, 2019, 3:59pm UTC](https://community.shotgridsoftware.com/t/loader-new-tab-for-context-sequence/3332/7 "2019-10-11T15:59:32Z")

</div>

Brilliant…Thank you for the prompt response.
