# Premiere xml timewarps fix

**URL:** https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836
**Category:** Flame Questions
**Tags:** pyton
**Created:** [March 1, 2023, 11:54pm UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836 "2023-03-01T23:54:10Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Doron](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@Doron](https://forum.logik.tv/u/Doron)
#### Post date: [March 1, 2023, 11:54pm UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836/1 "2023-03-01T23:54:10Z")

</div>

Can anyone drop a few lines on how to install and work with the premiere\_xml python script please?  
And does it fix the timewarps issues coming from premier?

Thanks

---

<div class="post-metadata">

### Author: ![ace\_elliott](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ace_elliott/32/14664_2.png) [@ace\_elliott](https://forum.logik.tv/u/ace_elliott)
#### Post date: [March 2, 2023, 1:48am UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836/2 "2023-03-02T01:48:36Z")

</div>

@DannyYoon ^

---

<div class="post-metadata">

### Author: ![DannyYoon](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DannyYoon](https://forum.logik.tv/u/DannyYoon)
#### Post date: [March 2, 2023, 3:37am UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836/3 "2023-03-02T03:37:15Z")

</div>

I think there’s another Danny on the forums that does Python. I didn’t write a fix for Premiere

---

<div class="post-metadata">

### Author: ![bryanb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/bryanb/32/136_2.png) [@bryanb](https://forum.logik.tv/u/bryanb)
#### Post date: [March 2, 2023, 3:56pm UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836/4 "2023-03-02T15:56:56Z")

</div>

Hi Doron - If you’ve never used python scripts in Flame before it should be pretty simple.

- put the python file (\*.py) is this folder: /opt/Autodesk/shared/python
- restart flame or refresh python hooks from the bottom right context menu
- when you browse in MediaHub to a location with .xml files, you should be able to right click on it and at the bottom see “XML Prep \> Fix Adobe Premiere XMLs”

If you’re using the latest version of the script you will see a box pop up with options before you confirm.

It fixes timewarps perfectly for me. The option is called “Fix Durations”

 ![Screenshot 2023-03-02 at 9.54.33 AM](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/2/200e0acda3066bf8c30f962fde0498809616b14e.jpeg)  
 ![Screenshot 2023-03-02 at 9.56.07 AM](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/6/61f2596acbe65d1f08717511e9b917d352bc3ef3.png)

---

<div class="post-metadata">

### Author: ![ace\_elliott](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ace_elliott/32/14664_2.png) [@ace\_elliott](https://forum.logik.tv/u/ace_elliott)
#### Post date: [March 2, 2023, 5:43pm UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836/5 "2023-03-02T17:43:23Z")

</div>

@Doron What things does this script fix? Does it change 2997 black/null frames to 2398 if thats what the sequence is?

---

<div class="post-metadata">

### Author: ![KuleshovEffect](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/kuleshoveffect/32/4928_2.png) [@KuleshovEffect](https://forum.logik.tv/u/KuleshovEffect)
#### Post date: [March 2, 2023, 6:55pm UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836/6 "2023-03-02T18:55:52Z")

</div>

Hey, I’m one of the authors of that script.

I recommend installing it via the Logik Portal:

> **[Logik Portal — Flame Python Scripts](https://www.pyflame.com/python-scripts/logik-portal)**
>
> Share Python Scripts, Batch Setups, Archives, and get the latest Logik Matchboxes from within Flame

@ace_elliott The script fixes repos so they come through correctly, and it fixes some duration mismatches (caused by timewarps or graphics) in the Premiere XML that confuse Flame, causing some clips in the timeline to have the wrong number of frames.

-Ted

---

<div class="post-metadata">

### Author: ![Doron](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@Doron](https://forum.logik.tv/u/Doron)
#### Post date: [March 3, 2023, 12:18am UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836/7 "2023-03-03T00:18:36Z")

</div>

I hope it fix timewarps

---

<div class="post-metadata">

### Author: ![Doron](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@Doron](https://forum.logik.tv/u/Doron)
#### Post date: [March 3, 2023, 12:27am UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836/8 "2023-03-03T00:27:34Z")

</div>

Hey mate,  
I dropped it in the /opt/Autodesk/shared/python folder, restarted flame (version 2023 if that matters)  
But right click doesn’t work. I don’t see the - “XML Prep \> Fix Adobe Premiere XMLs”.

Am I missing something?

thanks,  
Doron

---

<div class="post-metadata">

### Author: ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)
#### Post date: [March 3, 2023, 12:38am UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836/9 "2023-03-03T00:38:14Z")

</div>

Something in the App Shell will likely give you a hint. And is there a .pyc next to where you just put the .py file?

---

<div class="post-metadata">

### Author: ![Doron](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@Doron](https://forum.logik.tv/u/Doron)
#### Post date: [March 3, 2023, 12:43am UTC](https://forum.logik.tv/t/premiere-xml-timewarps-fix/7836/10 "2023-03-03T00:43:28Z")

</div>

I actually just installed the Logik Portal and it worked like magic.  
Thanks @KuleshovEffect @bryanb @randy
