# Python code to get the name of the current Reel Group

**URL:** <https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113>\
**Category:** Python\
**Created:** [October 21, 2021, 3:20pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113 "2021-10-21T15:20:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![andymilkis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andymilkis/32/11067_2.png) [@andymilkis](https://forum.logik.tv/u/andymilkis)\
**Post date:** [October 21, 2021, 3:20pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113/1 "2021-10-21T15:20:53Z")

</div>

Howdy pythonics…

I’m trying to figure out how to get the name of the current Reel Group.Any ideas?

Thx,

A

---

<div class="post-metadata">

**Author:** ![MikeV](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/mikev/32/399_2.png) [@MikeV](https://forum.logik.tv/u/MikeV)\
**Post date:** [October 21, 2021, 3:50pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113/2 "2021-10-21T15:50:05Z")

</div>

Hey Andy!

This should get you what you’re looking for:

flame.projects.current\_project.current\_workspace.desktop.reel\_groups[0].name

---

<div class="post-metadata">

**Author:** ![andymilkis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andymilkis/32/11067_2.png) [@andymilkis](https://forum.logik.tv/u/andymilkis)\
**Post date:** [October 21, 2021, 3:55pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113/3 "2021-10-21T15:55:10Z")

</div>

BOOMSHAKALAKA!! Thanks, Mike!

---

<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:** [October 21, 2021, 4:10pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113/4 "2021-10-21T16:10:53Z")

</div>

This will work if there is only one Reel Group in your Desktop though. If there are multiple Reel Groups this command will always return the name of the first one, not the current one.

There is a current\_batch\_group attribute at the PyDesktop level. You could submit an improvement to get the same for the Reel Groups.

---

<div class="post-metadata">

**Author:** ![andymilkis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andymilkis/32/11067_2.png) [@andymilkis](https://forum.logik.tv/u/andymilkis)\
**Post date:** [October 21, 2021, 4:23pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113/5 "2021-10-21T16:23:54Z")

</div>

Thanks, Fred. I’ll submit it!

---

<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:** [October 21, 2021, 6:41pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113/6 "2021-10-21T18:41:50Z")

</div>

Oh, current\_reel\_group does exist after all. It is under the PyWorkspace, not PyDesktop since the current Reel Group can be in a Library.

Note that this will return the Reel Group that has its icon highlighted in Yellow, not the one with set as visible in the Desktop Reels.

---

<div class="post-metadata">

**Author:** ![andymilkis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andymilkis/32/11067_2.png) [@andymilkis](https://forum.logik.tv/u/andymilkis)\
**Post date:** [October 21, 2021, 7:03pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113/7 "2021-10-21T19:03:01Z")

</div>

Thanks, Fred!

---

<div class="post-metadata">

**Author:** ![andymilkis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andymilkis/32/11067_2.png) [@andymilkis](https://forum.logik.tv/u/andymilkis)\
**Post date:** [October 21, 2021, 7:58pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113/8 "2021-10-21T19:58:29Z")

</div>

Worked like a charm!

---

<div class="post-metadata">

**Author:** ![andymilkis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andymilkis/32/11067_2.png) [@andymilkis](https://forum.logik.tv/u/andymilkis)\
**Post date:** [October 22, 2021, 9:21pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113/9 "2021-10-22T21:21:56Z")

</div>

Follow up question: Is there a way to get the name of the reel of a selected clip?

---

<div class="post-metadata">

**Author:** ![andymilkis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andymilkis/32/11067_2.png) [@andymilkis](https://forum.logik.tv/u/andymilkis)\
**Post date:** [October 22, 2021, 9:24pm UTC](https://forum.logik.tv/t/python-code-to-get-the-name-of-the-current-reel-group/4113/10 "2021-10-22T21:24:45Z")

</div>

NVM…I figured it out. It’s the parent function. It’s like riding a bike!
