You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an OCIOZ archive file is used as the config, FileTransforms are loaded from the .ocioz file. Currently, if an absolute path is used with a FileTransform, it won't work since it won't exist in the archive (OCIO restricts what it archives to only support paths that are relative to the working directory).
However, an application sometimes needs to load LUT files that are not part of the config (e.g., the user simply wants to apply a stand-alone LUT file). Currently the only way to do this is to create the Processor using a config that is different from the .ocioz file. This complicates the situation for applications since they would need to have different code paths based on whether the config is an archive or not. However, the intent for archives is that they be usable the same as a normal config.
The proposal is that FileTransforms that use absolute paths should be loaded directly from the file system and not via the .ocioz file. This should apply to all ConfigIOProxy workflows, not only OCIOZ archives.
Here is a test that may be added at line 438 in tests/cpu/OCIOZArchive_tests.cpp that demonstrates the problem:
- Do not use config proxy for absolute paths while computing file hash or loading LUT data.
- Added the unit test provided in the ticket.
Signed-off-by: cuneyt.ozdas <[email protected]>
When an OCIOZ archive file is used as the config, FileTransforms are loaded from the .ocioz file. Currently, if an absolute path is used with a FileTransform, it won't work since it won't exist in the archive (OCIO restricts what it archives to only support paths that are relative to the working directory).
However, an application sometimes needs to load LUT files that are not part of the config (e.g., the user simply wants to apply a stand-alone LUT file). Currently the only way to do this is to create the Processor using a config that is different from the .ocioz file. This complicates the situation for applications since they would need to have different code paths based on whether the config is an archive or not. However, the intent for archives is that they be usable the same as a normal config.
The proposal is that FileTransforms that use absolute paths should be loaded directly from the file system and not via the .ocioz file. This should apply to all ConfigIOProxy workflows, not only OCIOZ archives.
Here is a test that may be added at line 438 in tests/cpu/OCIOZArchive_tests.cpp that demonstrates the problem:
The text was updated successfully, but these errors were encountered: