Nuke File Loading Path

Hey!

when loading images/clips from the AYON loader, is there any workaround where the load paths will work on both linux and windows(maybe env variables?)

I’m aware we can do a path mapping using Nuke tools, but this feature will help automatically, Let me know your thoughts

I thought Nuke also supported env vars in filepaths, wasn’t there some sort of $envvar or $(envvar) or whatever format the filepath strings supported?

If so, we could technically collapse the paths to the ayon project roots env vars?

I’m not a Nuke user, so I might be fully wrong here.

It do support env variables

I wanted to bnring up some discussion or better idea before raise a enhancement request in git

https://learn.foundry.com/nuke/content/comp_environment/configuring_nuke/file_paths_cross_platform.html

issue resolved

1 Like

yes, we are already using expressions in nuke addon.

customOCIOConfigPath "\[regsub -all \{\\\\\} \[getenv BUILTIN_OCIO_ROOT] \"/\"]/aces_1.2/config.ocio" 

I gave it a test

[getenv AYON_PROJECT_ROOT_PUBLISH]/render/Render_UsdrenderMain_Beauty/v003/Expr_deadline_submissions_Render_UsdrenderMain_Beauty_v003.####.exr

but it seems AYON_PROJECT_ROOT_PUBLISH is not set.

import os

print(os.getenv("AYON_PROJECT_ROOT_PUBLISH"))
# Result: None

Thanks Mustafa, its worth adding environment variables method of loading in nuke addon