# Setup import option using Python

**URL:** <https://forum.logik.tv/t/setup-import-option-using-python/13488>\
**Category:** Python\
**Tags:** python, importing, mediahub\
**Created:** [September 14, 2025, 9:16pm UTC](https://forum.logik.tv/t/setup-import-option-using-python/13488 "2025-09-14T21:16:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lambertz](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@lambertz](https://forum.logik.tv/u/lambertz)\
**Post date:** [September 14, 2025, 9:16pm UTC](https://forum.logik.tv/t/setup-import-option-using-python/13488/1 "2025-09-14T21:16:33Z")

</div>

Hi,

I would like to set the No Cache and Sequence option (vs frame) to the mediahub before to load a clip using python.  
I try to understand how to setup it using

| class **PyMediaHubFilesTabOptions** ( ) |
| --- |
| |

It seems to have all the feature I want, but I can’t manage to make it works.

Is it possible ? Can somebody share an exemple ?

Thans

Franck

---

<div class="post-metadata">

**Author:** ![philm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/philm/32/9286_2.png) [@philm](https://forum.logik.tv/u/philm)\
**Post date:** [September 14, 2025, 10:59pm UTC](https://forum.logik.tv/t/setup-import-option-using-python/13488/2 "2025-09-14T22:59:34Z")

</div>

I’m pretty sure that you just set those options and then check your preference files.

Then you can just copy that pref to every user.

Or there may be an ENV VAR?

Let me check:

It’s got to be something to do with:

```auto
BUTTON : [Frames] MediaImportSequenceMode(ON)
BUTTON : [Cache] MediaImportStoreLocalCopy(ON)

BUTTON : [File Sequence] MediaImportSequenceMode(ON)
BUTTON : [Cache] MediaImportStoreLocalCopy(OFF)

```

Can you extract those attributes with your python script?

---

<div class="post-metadata">

**Author:** ![lambertz](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@lambertz](https://forum.logik.tv/u/lambertz)\
**Post date:** [September 15, 2025, 5:55am UTC](https://forum.logik.tv/t/setup-import-option-using-python/13488/3 "2025-09-15T05:55:43Z")

</div>

Salut Phil.

I want to change these options via python on the fly.  
I need to import multiple open clips. I don’t want to cache them and I need to be sure the user didn’t turn on the frame option.  
I need to set back the button as it was after the import.  
All of that in python

Thx

F

---

<div class="post-metadata">

**Author:** ![philm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/philm/32/9286_2.png) [@philm](https://forum.logik.tv/u/philm)\
**Post date:** [September 15, 2025, 7:49pm UTC](https://forum.logik.tv/t/setup-import-option-using-python/13488/4 "2025-09-15T19:49:26Z")

</div>

I couldn’t see the method either.

Sorry brother.

---

<div class="post-metadata">

**Author:** ![lambertz](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@lambertz](https://forum.logik.tv/u/lambertz)\
**Post date:** [September 15, 2025, 8:14pm UTC](https://forum.logik.tv/t/setup-import-option-using-python/13488/5 "2025-09-15T20:14:32Z")

</div>

Fred !!!

Stephane !!!

😉

---

<div class="post-metadata">

**Author:** ![Slabrie](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Slabrie](https://forum.logik.tv/u/Slabrie)\
**Post date:** [September 22, 2025, 2:36pm UTC](https://forum.logik.tv/t/setup-import-option-using-python/13488/7 "2025-09-22T14:36:16Z")

</div>

Salut Franck!

The current documentation does not provide much examples but the listed functions work.

If you want to enable the File Sequence mode,

**flame.mediahub.files.options.sequence\_mode = True**

If you want to enable the Frame mode,

**flame.mediahub.files.options.sequence\_mode = False**

If you want to disable Caching,

**flame.mediahub.files.options.cache\_mode = False**

Hopes this help.

---

<div class="post-metadata">

**Author:** ![lambertz](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@lambertz](https://forum.logik.tv/u/lambertz)\
**Post date:** [September 22, 2025, 3:05pm UTC](https://forum.logik.tv/t/setup-import-option-using-python/13488/8 "2025-09-22T15:05:30Z")

</div>

Super.

Merci stephane !  
It’s exactly what I was looking for.

F
