# Sequential file name import issue

**URL:** <https://forum.logik.tv/t/sequential-file-name-import-issue/5999>\
**Category:** Flame Questions\
**Tags:** file-io\
**Created:** [June 7, 2022, 8:42am UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999 "2022-06-07T08:42:05Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![DesM](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DesM](https://forum.logik.tv/u/DesM)\
**Post date:** [June 7, 2022, 8:42am UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/1 "2022-06-07T08:42:05Z")

</div>

I’ve been given some files that have been through an NR process and the software has just tagged NR to the end of the file names, after the sequential file number

eg

orig files were “name\_####.exr”

nr files are “name\_####\_NR.exr”

Flame now sees these as individual files, not as sequences. Any way to force flame to see them sequentially? Or can someone suggest a good (easy) linux renamer utility?

tia

Des

---

<div class="post-metadata">

**Author:** ![Francesco.Bianco](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Francesco.Bianco](https://forum.logik.tv/u/Francesco.Bianco)\
**Post date:** [June 7, 2022, 9:18am UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/2 "2022-06-07T09:18:17Z")

</div>

Hi, have you tried shutter encoder [Shutter Encoder encoding|converting video FREE PC|Mac](https://www.shutterencoder.com/en/) . It’s a nice tool to have and have a renamer utility build in.

---

<div class="post-metadata">

**Author:** ![DesM](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DesM](https://forum.logik.tv/u/DesM)\
**Post date:** [June 7, 2022, 9:54am UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/3 "2022-06-07T09:54:05Z")

</div>

Hi Francesco,  
Thanks, but I’m remoting onto a linux system …mac and pc are not an option.  
D

---

<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:** [June 7, 2022, 10:37am UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/4 "2022-06-07T10:37:59Z")

</div>

If using python scripts are an option, I could probably modify one of mine to do a find and replace in the mediaHub. Let me know if that would be helpful.

---

<div class="post-metadata">

**Author:** ![DesM](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DesM](https://forum.logik.tv/u/DesM)\
**Post date:** [June 7, 2022, 11:39am UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/5 "2022-06-07T11:39:16Z")

</div>

Hi John, that definitely sounds interesting.  
Ideally you would have find / replace plus renumbering with padding options.

I’ve found linux utility ‘metamorphose’ which is fully featured, but the interface is terrible as it doesnt scale properly. I think its quite old…

> **[Métamorphose File and Folder Renamer - Browse /Metamorphose 2 at...](https://sourceforge.net/projects/file-folder-ren/files/Metamorphose%202/)**
>
> A cross platform file and folder mass renamer, allows many different renaming operations in a GUI. 
> 
> Please note that development has moved to…

Des

---

<div class="post-metadata">

**Author:** ![Francesco.Bianco](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Francesco.Bianco](https://forum.logik.tv/u/Francesco.Bianco)\
**Post date:** [June 7, 2022, 12:47pm UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/6 "2022-06-07T12:47:28Z")

</div>

Hi, there is also a linux version for shutter encoder but the python script looks cooler.

---

<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:** [June 7, 2022, 2:26pm UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/7 "2022-06-07T14:26:06Z")

</div>

Hey Des. Give this a go: [find\_and\_replace\_mediahub.zip](https://forum.logik.tv/uploads/short-url/2CDVldyNfN2rf3zYA2v2EaV0CYe.zip) (13.2 KB)

Extract this to: /opt/Autodesk/shared/python _or_ /opt/Autodesk/user/your\_user/python

Doing a find and replace was quick because I already had most of this built. Adding renumbering with padding options is definitely possible, but I’ll need more free time.

---

<div class="post-metadata">

**Author:** ![DesM](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DesM](https://forum.logik.tv/u/DesM)\
**Post date:** [June 7, 2022, 3:00pm UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/8 "2022-06-07T15:00:47Z")

</div>

Hi John,  
Thanks for this!  
Its not working for me atm unfortunately:(  
I get the dialogue popup, enter details and hit rename, but nothing changes. Does it need permisssions or anything? Or perhaps its because I’m only wanting to replace some (not all) of the name?  
here’s the output from the flame terminal, if thats useful:

_\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\> Find and Replace MediaHub v0.1 \<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<_  
_\>\>\> config loaded \<\<\<_  
 _→ config saved_

* * *

_File Path: /mnt/StorageMedia/temp/s3\_ep1\_col\_tests/test 1/_  
_Find Me: test_  
_Replace With Me: UPDATE_  
_New File Name:_  
_New File Path: /mnt/StorageMedia/temp/s3\_ep1\_col\_tests/test 1/_  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Find and Replace End \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

The files I’m pointing at are of the form:  
**pretitles test nr\_####.exr**

So I would expect to get:  
**pretitles UPDATE nr\_####.exr**

ta  
Des

---

<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:** [June 7, 2022, 3:16pm UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/9 "2022-06-07T15:16:00Z")

</div>

It looks like you’re selecting a folder and not selecting files. Is that right?

Are there spaces in the file name? I didn’t test that, but it should work.

Are you able to change a name in the “finder?”

---

<div class="post-metadata">

**Author:** ![DesM](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DesM](https://forum.logik.tv/u/DesM)\
**Post date:** [June 7, 2022, 3:35pm UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/10 "2022-06-07T15:35:59Z")

</div>

aah, that works now on files if viewed as frames, but not when they’re presented as a sequence. I was running this on already fixed files so they’re appearing as a sequence, but switching to frames works.  
spaces seem to be ok too:

_File Path: /mnt/StorageMedia/temp/s3\_ep1\_col\_tests/test 1/updated 000005.exr_  
_Find Me: updated_  
_Replace With Me: renamed\_and\_tested with spaces_  
_New File Name: renamed\_and\_tested with spaces 000005.exr_  
_New File Path: /mnt/StorageMedia/temp/s3\_ep1\_col\_tests/test 1/renamed\_and\_tested with spaces 000005.exr_

So to fix my original bad files which were of the form  
**pretitles test\_####\_nr.exr**  
I’d need to run this twice, once to amend the name, and again to remove the \_nr.

Des

---

<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:** [June 7, 2022, 3:44pm UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/11 "2022-06-07T15:44:24Z")

</div>

> [@DesM](#):
>
> I’d need to run this twice, once to amend the name, and again to remove the \_nr.

Exactly.

> [@DesM](#):
>
> aah, that works now on files if viewed as frames, but not when they’re presented as a sequence.

Yep, it won’t work on sequences - only frames or individual files. Glad it’s working for you.

---

<div class="post-metadata">

**Author:** ![DesM](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DesM](https://forum.logik.tv/u/DesM)\
**Post date:** [June 7, 2022, 3:46pm UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/12 "2022-06-07T15:46:42Z")

</div>

Thanks, very cool!  
Des

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [June 7, 2022, 4:51pm UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/13 "2022-06-07T16:51:16Z")

</div>

Not sure what version you are running, nor which are applicable, but in my CentOS 8, the file manager in the UI has a search and replace feature in the rename dialoge.

 ![Screenshot from 2022-06-07 12-48-15](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/e/eb4a59173f9e887c876abca807c13c453a6770ad.png)

---

<div class="post-metadata">

**Author:** ![DesM](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DesM](https://forum.logik.tv/u/DesM)\
**Post date:** [June 7, 2022, 5:04pm UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/14 "2022-06-07T17:04:55Z")

</div>

Im on centos 7.6 but yes dolphin has this. Nice!  
thanks  
Des

---

<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:** [June 10, 2022, 8:29pm UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/15 "2022-06-10T20:29:28Z")

</div>

Here are two scripts:

1. Slight tweak to Find & Replace. Now it doesn’t show up if a sequence is selected.
2. Sequence Renamer with Start Frame and Padding options.

[mediahub\_renamers.zip](https://forum.logik.tv/uploads/short-url/b5ooefw0ypWYoxlpAUPJEe4qbnl.zip) (25.9 KB)

---

<div class="post-metadata">

**Author:** ![DesM](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DesM](https://forum.logik.tv/u/DesM)\
**Post date:** [June 14, 2022, 9:25am UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/16 "2022-06-14T09:25:07Z")

</div>

Hi John,  
these work a treat.  
thanks very much!  
Des

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [March 10, 2023, 8:51am UTC](https://forum.logik.tv/t/sequential-file-name-import-issue/5999/17 "2023-03-10T08:51:23Z")

</div>

Fabulous @john-geehreng
