#1 : 07/02-12 04:53 Mitch
Posts: 4
|
Sometimes I end up with a sequence of files that have negative numbers as part of the filename, IE:
file.-200.png file.-199.png ... Is there a way to use Advance rename to rename them so they have positive numbers but keep the same order? IE: file.-200.png -> file.000.png file.-199.png -> file.001.png ... Thanks. |
#2 : 07/02-12 08:25 Kim Jensen
Administrator
Posts: 883 |
Reply to #1:
You can use the replace method to remove the -. Then you can use the new renumbering method to change the numbers. This might not behave as expected if you have both negative and positive numbers in the same sequence. If you do I think you need to perform two batches, first one for the positive and then one for the negative numbers. Otherwise I think the numbers will clash. http://www.advancedrenamer.com/user_guide/metho d_replace http://www.advancedrenamer.com/user_guide/metho d_renumber |
#3 : 09/02-12 05:10 Mitch
Posts: 4
|
Reply to #2:
Thanks for the reply. The problem is that after removing the '-', the numbers would be in the wrong order. For example if the numbers run from -200 to -100, when the '-' is removed, they will now run from 100 to 200, so if I load them into a player (these are rendered images), they will run in the reverse order. Of course this can handled by video editing software, but it'd be more advantageous if I could do it with a renamer. |
#4 : 09/02-12 15:27 Kim Jensen
Administrator
Posts: 883 |
Reply to #3:
Ah I see that is tricky. I will try to come up with a solution for you but I need to think about how it can be done. |
#5 : 09/02-12 22:45 erwin ruff
Posts: 21
|
Reply to #4:
maybe you can index your files by a counting number in front of the filename then rename with your methods (maybe a little editing because of the new number) and add a method to remove the counting number in front. so your order will not change i hope this helps sorry for my bad english |
#6 : 10/02-12 17:51 Steve Whitbread
Posts: 21
|
Reply to #5:
Using AR 3.21, assuming you have a folder which contains one series of shots (or you just load up that set from the folder), so that you have something like fx 09 fx 05 fx 01 fx 0 fx -1 fx -2 fx -5 fx -9 etc 1. Using just the +ve files, use a renumber method with relative renumbering & a number difference of sufficient size (40 will do for the above). Run batch. This leaves just the -ve files on display. 2. Select all (i.e. the -ve files) 3. Add (a) a renumber method, using relative numbering and a number difference of appropriate size (-20 will do here), and (b) a replace method to strip the resulting negative signs. Run batch. This puts your -ve files in the right order, numbering them positively in a range below that of your original +ve files (Thanks to step 1) (Bored yet?) 4. Reload the files 5. Now use renumber with absolute number to number the files in the order you want from 1 or 5001 as you want. (I'm sure there will be a much neater solution built into AR in future). You can at least save the 1, 3 5 methods for re-use. |
#7 : 17/02-12 15:45 Mitch
Posts: 4
|
Thanks for these suggestions. I've been careful to rename my files during rendering, so I haven't run into this problem since my last post, but I appreciate you taking the time to help.
|