# Get cached status from segment

**URL:** <https://forum.logik.tv/t/get-cached-status-from-segment/3642>\
**Category:** Python\
**Created:** [August 12, 2021, 2:21pm UTC](https://forum.logik.tv/t/get-cached-status-from-segment/3642 "2021-08-12T14:21:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyleobley](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kyleobley](https://forum.logik.tv/u/kyleobley)\
**Post date:** [August 12, 2021, 2:21pm UTC](https://forum.logik.tv/t/get-cached-status-from-segment/3642/1 "2021-08-12T14:21:51Z")

</div>

I feel like I’m missing something obvious, yet again, but I can’t seem to get the cached status of a segment when going over a sequence.

```auto
def extract_segment_info(segment):
    if segment.name != '':
            name = segment.name
            path = segment.file_path
            duration = segment.source_duration.frame

            ''' Cached not working '''
            cached = segment.cached

```

So clearly the attribute does not exist like it does when you’re looking into a clip where the attribute is set. I can’t quite seem to figure out how to get that value…there must be a way.

Any breadcrumbs one can offer? I find the hierarchy of things to be confusing and how the method of getting certain information changes depending on what something is or where you’re looking at it from.

Thanks.

---

<div class="post-metadata">

**Author:** ![claussteinmassl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/claussteinmassl/32/1922_2.png) [@claussteinmassl](https://forum.logik.tv/u/claussteinmassl)\
**Post date:** [August 12, 2021, 2:35pm UTC](https://forum.logik.tv/t/get-cached-status-from-segment/3642/2 "2021-08-12T14:35:41Z")

</div>

From reading the docs I’d say it’s not possible, because PySegment does not inherit PyClip or does not store any reference to the underlaying PyClip object it comes from. Maybe worth a feature request to have a method, that returns the underlaying clip.

Maybe I’m missing something, too … 🙂

---

<div class="post-metadata">

**Author:** ![kyleobley](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kyleobley](https://forum.logik.tv/u/kyleobley)\
**Post date:** [August 12, 2021, 2:42pm UTC](https://forum.logik.tv/t/get-cached-status-from-segment/3642/3 "2021-08-12T14:42:16Z")

</div>

@fredwarren Is this possible?

---

<div class="post-metadata">

**Author:** ![fredwarren](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/fredwarren/32/158_2.png) [@fredwarren](https://forum.logik.tv/u/fredwarren)\
**Post date:** [August 12, 2021, 3:04pm UTC](https://forum.logik.tv/t/get-cached-status-from-segment/3642/4 "2021-08-12T15:04:07Z")

</div>

No, it is not possible. The cached properties is only available at the Clip level. You can submit an Improvement request over at Flame Feedback for the support on the PySegment.

---

<div class="post-metadata">

**Author:** ![kyleobley](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kyleobley](https://forum.logik.tv/u/kyleobley)\
**Post date:** [August 12, 2021, 3:08pm UTC](https://forum.logik.tv/t/get-cached-status-from-segment/3642/5 "2021-08-12T15:08:59Z")

</div>

Will do, thank you.

---

<div class="post-metadata">

**Author:** ![kyleobley](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kyleobley](https://forum.logik.tv/u/kyleobley)\
**Post date:** [August 13, 2021, 4:34am UTC](https://forum.logik.tv/t/get-cached-status-from-segment/3642/6 "2021-08-13T04:34:47Z")

</div>

In case anyone else would like this feature, you can up-vote [FI-02659](https://feedback.autodesk.com/project/feedback/view.html?cap=5afe6c845cb3447ab36ccbd7f0688f84&uf=31e5cc369fcd464d8d31f2792289f285&slsid=ce8037ac60724ec98a508a2645ca2d0c).
