Author Topic: Renaming on ingest, using part of file name  (Read 2031 times)

Offline fhammond

  • Newcomer
  • *
  • Posts: 3
    • View Profile
Renaming on ingest, using part of file name
« on: October 22, 2017, 09:45:12 AM »
Hi,

I'd like to use a renaming format that includes part of the original file name as the new name. I can get the whole file name easily:
20171021_15-04-23_DSC08001.arw

but what I'd like to get is:
20171021_15-04-23_8001.arw

Is this possible?

Thanks!

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24756
    • View Profile
    • Camera Bits, Inc.
Re: Renaming on ingest, using part of file name
« Reply #1 on: October 22, 2017, 03:16:55 PM »
Hi,

I'd like to use a renaming format that includes part of the original file name as the new name. I can get the whole file name easily:
20171021_15-04-23_DSC08001.arw

but what I'd like to get is:
20171021_15-04-23_8001.arw

Is this possible?

Yes, see: http://wiki.camerabits.com/en/index.php/User_Manual_Flat_View#Variable_Substring_Extraction

If you want the last four letters of the base filename you would use {filenamebase:-4,4}

HTH,

-Kirk