Author Topic: Can I use only a subset of a variable on ingest?  (Read 2142 times)

Offline Mike-D

  • Newcomer
  • *
  • Posts: 37
    • View Profile
Can I use only a subset of a variable on ingest?
« on: April 27, 2008, 07:54:22 AM »
Hi there

I'm wondering if it's possible to use only a subset of a variable when injesting an image?  For example, my 5D files are named by default

_MG_1234.CR2

What I would like to do is rename them to the format

1234-xxx.cr2

where 1234 is the file number only (without the "_MG_" part), and "xxx" is the last 3 numbers of the serial number.  So {filename} and {serialnum} are good starting points, but I don't need the whole thing.  Is this possible?

Mike
---
Mac OS X 10.6.3
PM 4.6.5

Offline devenh

  • Sr. Member
  • ****
  • Posts: 435
    • View Profile
Re: Can I use only a subset of a variable on ingest?
« Reply #1 on: April 27, 2008, 09:35:04 AM »
Yes.  Try

{filename:4}-{serialnum:-4}

Deven

Offline Mike-D

  • Newcomer
  • *
  • Posts: 37
    • View Profile
Re: Can I use only a subset of a variable on ingest?
« Reply #2 on: April 27, 2008, 11:22:04 AM »
Sweet, thanks! :)
---
Mac OS X 10.6.3
PM 4.6.5