Jump to content
You must now use your email address to sign in [click for more info] ×

OCIO environment variable overrides entered file path


Mike_A

Recommended Posts

I need to run two OCIO config files - a version 1.x and a version 2.x - because some software I use needs one or the other.
I have a Windows OCIO environment variable set to the version 2.x config.

In AP colour prefs I had originally set a direct file path to the version 1.x OCIO config - as AP requires.
However, having subsequently established the Win environment variable to the version 2.x config... AP automatically decided to use that - which fails as you do not yet support v2.x  AP is overriding my direct file path entry without my permission and without any option to correct it as the 'Select' button is now grayed out...

Actions required:

DO NOT automatically override this, or any other, user preference. Allow a manually entered direct OCIO file path, whether or not an OCIO environment variable exists.

If no direct file path is entered, and an OCIO environment variable does - then feel free to use it. Just don't override my path!

 

 

Link to comment
Share on other sites

In cause you are looking for a workaround:

You could use a tiny 2 line .cmd file settings the path for Affinity and starting Photo, instead of directly starting the app. This ensures every App gets the environment it needs.

 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

  • 2 weeks later...

Thanks for the heads up - unfortunately my know-how on making a cmd file ends with something like:

cd C:\Program Files\Affinity\Photo\
start Photo.exe

How would I set a custom OCIO config for AP using this?
Any help is most appreciated. Thank you.

Link to comment
Share on other sites

On 8/13/2021 at 2:31 AM, Mike_A said:

However, having subsequently established the Win environment variable to the version 2.x config.

I‘m referring to that statement.

open cmd.exe, and execute:

Set 

it will show the current settings, scroll to find the actual line.

 add the following line before the start Photo.exe into the „goPhoto.cmd“:

Set <name>=„path“

Exchange <name> by the name of the environment variable 

Exchange „path“ by the path for the 1.x config file.

ensure using proper „“ (only upper for Windows)

 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.