# Remove Premiere XML Crap - Python Script

**URL:** <https://forum.logik.tv/t/remove-premiere-xml-crap-python-script/13954>\
**Category:** Python\
**Tags:** action, xml\
**Created:** [January 8, 2026, 6:47pm UTC](https://forum.logik.tv/t/remove-premiere-xml-crap-python-script/13954 "2026-01-08T18:47:51Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [January 8, 2026, 6:47pm UTC](https://forum.logik.tv/t/remove-premiere-xml-crap-python-script/13954/1 "2026-01-08T18:47:51Z")

</div>

Do you find the extra nodes that Flame automatically creates when importing an XML to be extremely annoying?

Do you wish you could delete all of the extra axes, lights, and shadows in a sequence with a single click?

With this simple Python script, now you can! And as an added bonus, it fixes the Action resolution bug!!

Many thanks to @john-geehreng for the “Fix Corrupt Actions” script, which this is based off of.

Thanks to @CoryJohnson for introducing me to the Invert Axis script by @MikeV from which I learned you can edit an Action node as a text file.

[remove\_XML\_crap.py](https://forum.logik.tv/uploads/short-url/81tPo1WhuAs9cjYqFqgr5YfO08G.py) (9.8 KB)

-Ted

---

<div class="post-metadata">

**Author:** ![john-geehreng](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/john-geehreng/32/7195_2.png) [@john-geehreng](https://forum.logik.tv/u/john-geehreng)\
**Post date:** [January 8, 2026, 11:07pm UTC](https://forum.logik.tv/t/remove-premiere-xml-crap-python-script/13954/2 "2026-01-08T23:07:13Z")

</div>

Love this, thanks Ted!

---

<div class="post-metadata">

**Author:** ![johnag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnag/32/573_2.png) [@johnag](https://forum.logik.tv/u/johnag)\
**Post date:** [January 11, 2026, 11:49pm UTC](https://forum.logik.tv/t/remove-premiere-xml-crap-python-script/13954/3 "2026-01-11T23:49:48Z")

</div>

Thanks for this. Will it appear in the Logik Portal?

---

<div class="post-metadata">

**Author:** ![kily](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@kily](https://forum.logik.tv/u/kily)\
**Post date:** [January 12, 2026, 5:15pm UTC](https://forum.logik.tv/t/remove-premiere-xml-crap-python-script/13954/4 "2026-01-12T17:15:51Z")

</div>

Just tested. It works great , Ted. And as a bonus, by editing and reloading them, it disables the format bug for xml sequences. From now on, along with ‘Fix Premiere XML,’ it’s my favorite hook and will save me tons of time. Much appreciated.

---

<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:** [January 13, 2026, 10:40pm UTC](https://forum.logik.tv/t/remove-premiere-xml-crap-python-script/13954/5 "2026-01-13T22:40:54Z")

</div>

Just added it.

---

<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:** [April 7, 2026, 5:45pm UTC](https://forum.logik.tv/t/remove-premiere-xml-crap-python-script/13954/6 "2026-04-07T17:45:34Z")

</div>

I’ve updated this script - now you can select individual clips on the Timeline, in addition to selecting the entire sequence in the Media Panel.

I’ve also moved the script into a folder called “Action Tools.”

-Ted

---

<div class="post-metadata">

**Author:** ![finnjaeger](https://avatars.discourse-cdn.com/v4/letter/f/e99b99/32.png) [@finnjaeger](https://forum.logik.tv/u/finnjaeger)\
**Post date:** [April 8, 2026, 12:17am UTC](https://forum.logik.tv/t/remove-premiere-xml-crap-python-script/13954/7 "2026-04-08T00:17:40Z")

</div>

@hildebrandtbernd😃 your prayers have been answered
