Hello.
We used to have versioning working correctly in mrViewer some time ago.
I remember jsut using soemthing like _v, or __v in our case used to work perfectly.
Not any more. I opened the Preferences and now in Loading I found this regex: ([\w:/]*?[/._]*v)(\d+)([%\w\d./]*)
Which is not working for us. This is an example of one of our files: RND_010__rnd_cg__test__v003.####.exr
How we should setup the version regex to get it working again?
Using mrViewer 6.1.2
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try setting the regex to just __v. When you switch from one image version to the next it should fill the regex for you.
Note that there's one catch. If the directory that contains the images does matches __v{version} the version number should match the one of the image.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks gga.
Nope for some reason is not working.
I have attached a couple of captures that shows our folder structure and name convention.
Also something really strange, I set the regex to be just __v.
But at the moment I try to move to other versions with Alt+PgUp/Down when I open the Preferences again I that the regex has been rested again back to ([\w:/]*?[/._]*__v)(\d+)([%\w\d./]*).
Is that intended? is a bug? That means that whatever I put ion the regex is going to be reset somehow?
I remember this feature used to work perfectly in previous version of mrViewer, and is a feature we all love :)
It is not a bug. It is intended. Any text that is less than 5 characters long is turned into a special regex.
As a work-around, you might try: (.*?__v)(\d+)(.*)
I think what might be confusing the regex is the backslashes of windows. So this might work too: ([\w:/\\]*?[/._\\]*__v)(\d+)([%\w\d./\\]*)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks gga.
I tested both regex and unfortunately none of them worked.
In what version of mrViewer was the version regex system changed?
I can try to test the portable version of an old version to see if it works.
Also what type or regex is mrViewer using?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am surprised the first regex did not work for you, as it is very flexible and it worked for me just fine. The second one I am not suprised as it did not work for me either (I did not bother to debug why it didn't).
v5.9.5 or mViewer should not have any regex and should work.
The regex is perl-like (or ruby like). I personally use ruby to check the matches, as it is easier than python (but python should work too if you know how to use it and don't get mixed with any backslashing).
The regex must create and match three groups ( the part until the version number, the version number itself, and the rest ). The regex is run multiple times on the fullpath+name of the file so that it matches directories and files.
Can you send me the full path and filenames to two of the image versions you are trying to match? The picture you sent me was incomplete and did not allow me to cut and paste. Ideally, try listing the files with 'ls' in mingw or cygwin or windows' WSL. If that does not work for you, list them with dir in cmd.exe.
I can then test the regex in ruby and I can give you a regex that works. Also, the next version will print out what it matches (if anything) when you switch versions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
We used to have versioning working correctly in mrViewer some time ago.
I remember jsut using soemthing like _v, or __v in our case used to work perfectly.
Not any more. I opened the Preferences and now in Loading I found this regex:
([\w:/]*?[/._]*v)(\d+)([%\w\d./]*)
Which is not working for us. This is an example of one of our files:
RND_010__rnd_cg__test__v003.####.exr
How we should setup the version regex to get it working again?
Using mrViewer 6.1.2
Thanks
Try setting the regex to just __v. When you switch from one image version to the next it should fill the regex for you.
Note that there's one catch. If the directory that contains the images does matches __v{version} the version number should match the one of the image.
Thanks gga.
Nope for some reason is not working.
I have attached a couple of captures that shows our folder structure and name convention.
Also something really strange, I set the regex to be just
__v
.But at the moment I try to move to other versions with Alt+PgUp/Down when I open the Preferences again I that the regex has been rested again back to
([\w:/]*?[/._]*__v)(\d+)([%\w\d./]*)
.Is that intended? is a bug? That means that whatever I put ion the regex is going to be reset somehow?
I remember this feature used to work perfectly in previous version of mrViewer, and is a feature we all love :)
Thanks
It is not a bug. It is intended. Any text that is less than 5 characters long is turned into a special regex.
As a work-around, you might try:
(.*?__v)(\d+)(.*)
I think what might be confusing the regex is the backslashes of windows. So this might work too:
([\w:/\\]*?[/._\\]*__v)(\d+)([%\w\d./\\]*)
Thanks gga.
I tested both regex and unfortunately none of them worked.
In what version of mrViewer was the version regex system changed?
I can try to test the portable version of an old version to see if it works.
Also what type or regex is mrViewer using?
Thanks
I am surprised the first regex did not work for you, as it is very flexible and it worked for me just fine. The second one I am not suprised as it did not work for me either (I did not bother to debug why it didn't).
v5.9.5 or mViewer should not have any regex and should work.
The regex is perl-like (or ruby like). I personally use ruby to check the matches, as it is easier than python (but python should work too if you know how to use it and don't get mixed with any backslashing).
The regex must create and match three groups ( the part until the version number, the version number itself, and the rest ). The regex is run multiple times on the fullpath+name of the file so that it matches directories and files.
Can you send me the full path and filenames to two of the image versions you are trying to match? The picture you sent me was incomplete and did not allow me to cut and paste. Ideally, try listing the files with 'ls' in mingw or cygwin or windows' WSL. If that does not work for you, list them with dir in cmd.exe.
I can then test the regex in ruby and I can give you a regex that works. Also, the next version will print out what it matches (if anything) when you switch versions.