Author Topic: (re) numbering with new dateformat / new seqn for each new objectname  (Read 14645 times)

Offline Brendan

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
hello all!

I`d like to shorten my filenames.

at present all files have this format: {datesort}_{object}-{seqn}

Now I want to have the shorter date format:

{year2}{month0}{day0}_{object}-{seqn}


the problem is, when I use the new rename string, the seqn number will number ALL images, e.g. up to 10000.

is it possible to start for each new OBJECT !!  a new number-space? ("reset the seqn after a new objectname")

like this:

20090101_wedding-01  -> 090101_wedding-01
...
20090101_wedding-99 ->  90101_wedding-99

20090101_soccer-01  -> 090101_soccer-01
...
20090101_soccer-20 -> 090101_soccer-20



greetz
Brendan

using the latest version of PM on win10

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Brendan,

I`d like to shorten my filenames.

at present all files have this format: {datesort}_{object}-{seqn}

Now I want to have the shorter date format:

{year2}{month0}{day0}_{object}-{seqn}


the problem is, when I use the new rename string, the seqn number will number ALL images, e.g. up to 10000.

is it possible to start for each new OBJECT !!  a new number-space? ("reset the seqn after a new objectname")

like this:

20090101_wedding-01  -> 090101_wedding-01
...
20090101_wedding-99 ->  90101_wedding-99

20090101_soccer-01  -> 090101_soccer-01
...
20090101_soccer-20 -> 090101_soccer-20

No, but you can extract the last two characters from the original filename to get its current sequence number.  So your renaming string would be:

{year2}{month0}{day0}_{object}-{filenamebase:-2}

-Kirk

Offline Brendan

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
No

so, this is a feature request!


Quote
, but you can extract the last two characters from the original filename to get its current sequence number.  So your renaming string would be:

{year2}{month0}{day0}_{object}-{filenamebase:-2}

hm. good idea. sometimes I have a three-numbered-sequence - problem?!
using the latest version of PM on win10

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
No

so, this is a feature request!


Quote
, but you can extract the last two characters from the original filename to get its current sequence number.  So your renaming string would be:

{year2}{month0}{day0}_{object}-{filenamebase:-2}

hm. good idea. sometimes I have a three-numbered-sequence - problem?!

You'll have to separate those filenames out and use {filenamebase:-3} then.

-Kirk

Offline Brendan

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile


You'll have to separate those filenames out ..

how?
using the latest version of PM on win10

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.


You'll have to separate those filenames out ..

how?

You'll just have to visually inspect them.  Or since you really just want to remove the first two characters, just drop them off with this:

{filenamebase:2}

That should do it.

-Kirk


-Kirk
« Last Edit: June 14, 2009, 08:28:28 AM by Kirk Baker »

Offline Brendan

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
impossible.

so, this is definitvely a feature request.. indeed
using the latest version of PM on win10

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
impossible.

so, this is definitvely a feature request.. indeed

What do you mean by impossible?  You gave examples like:

20090101_wedding-01  -> 090101_wedding-01

Using {filenamebase:2} as your renaming string will do exactly what you want already.

-Kirk

Offline Brendan

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
yes but impossible to find them (2 or 3  numbers) visually
using the latest version of PM on win10

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
yes but impossible to find them (2 or 3  numbers) visually

But I am no longer suggesting that you do so.  See my previous post.

-Kirk

Offline Brendan

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
Re: (re) numbering with new dateformat / new seqn for each new objectname
« Reply #10 on: June 14, 2009, 09:51:50 AM »
so, what will happen with

20090101_wedding-001 

and filenamebase 2?
using the latest version of PM on win10

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: (re) numbering with new dateformat / new seqn for each new objectname
« Reply #11 on: June 14, 2009, 09:52:38 AM »
so, what will happen with

20090101_wedding-001 

and filenamebase 2?

You'll need to use {filenamebase:2} and you'll get 090101_wedding-001 just like you asked for.  Notice the number is positive instead of negative now.

-Kirk

Offline Brendan

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
Re: (re) numbering with new dateformat / new seqn for each new objectname
« Reply #12 on: December 14, 2009, 12:37:36 AM »

You'll need to use {filenamebase:2} and you'll get 090101_wedding-001 just like you asked for.  Notice the number is positive instead of negative now.

hi kirk,

now I used it - works excellent! thanks
using the latest version of PM on win10