feat: SG-41979: Added env var with a pattern for opening files without forming sequences#1118
feat: SG-41979: Added env var with a pattern for opening files without forming sequences#1118chenlj1 wants to merge 5 commits intoAcademySoftwareFoundation:mainfrom
Conversation
Signed-off-by: chenl1 <ling.jie.chen@autodesk.com>
|
I am not sure that I liked adding Qt::Gui dependcy to TwkUtil. Is there a way you could detect the key outside of sequencesInFileList and pass a boolean, or something along those lines? @chenlj1 @bernie-laberge |
I will look into this. |
I was about to add the same comment as @cedrik-fuoco-adsk. It would be cleaner if we could simply pass the information needed to |
|
Also @chenlj1, if you don't have it enabled already, I encourage you to add clang-tidy to your IDE by following the Open RV documentation. |
|
Was the intent of the environment variable to be an actual pattern like for a regex or simply a substring to match? If it's the latter, I would rename |
@cedrik-fuoco-adsk @eloisebrosseau If I add the flag to the |
You are right, renaming it to |
Signed-off-by: chenl1 <ling.jie.chen@autodesk.com>
|
@cedrik-fuoco-adsk @eloisebrosseau After discussing with @bernie-laberge, we have decided to remove the alt/option key option. This means we will no longer need the extra dependency in TwkUtil. |
Signed-off-by: chenl1 <ling.jie.chen@autodesk.com>
Signed-off-by: chenl1 <ling.jie.chen@autodesk.com>
SG-41979: Add env var with a pattern to prevent RV from loading images as an image sequence
Summarize your change.
Added the ability to set an environment variable called RV_NO_SEQUENCE_SUBSTRING to make all files containing that pattern no longer be able to form a sequence. (i.e. export RV_NO_SEQUENCE_SUBSTRING=".some_pattern.")
Describe the reason for the change.
This change was requested by a client where they wanted a better way to control when a list of file should form a sequence.
Describe what you have tested and on which operating system.
This fix was tested on macOS by setting the environment variable RV_NO_SEQUENCE_SUBSTRING to ".nosequence." (export RV_NO_SEQUENCE_SUBSTRING=".nosequence.") and trying to add more than 5 file with that pattern at once to make sure no sequence would form. (RV was opened using the same terminal used to set the environment variable.)