Topic: math on siren?

Hi,
Great program

Is there a way to use mathematical operators like addition?

I want to rename

t00.tif --> t24.tif
t01.tif --> t25.tif
t02.tif --> t26.tif
t03.tif --> t27.tif
etc.

Is there a way to do that with Siren?

Thanks,
Tom

2 (edited by Stefan 2012-05-17 12:55:05)

Re: math on siren?

Hello Tom, welcome.

It is always an good idea to provide real file names as examples!



Because for your "t01" example
you can just drop the old file name
and build an new one by inserting "t" and
then add an new numbering starting at "24":

Expression: t%n{2,24,1}.tif



"t" is just an literal char "t".
"%n" is an counter in the order the files are selected.
The parameter  {2,24,1} stands for {padding width, start at, step width}

Here are more explanations > http://scarabee-software.net/forum/viewtopic.php?id=269

Re: math on siren?

Hello,

Another solution can be to use the %N variable with its specific modifier.

For example the following expression should be ok :
t%N{2,24}.%e

%N{2,24} will extract the first number from the base name, pad it to 2 digits and add 24 to it.

Regards

Re: math on siren?

Thanks,
I was using version 1.8, now I have the new version and I use addition to numbers.
Again, great program!