-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AY-7025_OCIO path hardcoded into the metadata json #969
Comments
We were discussing this recently with @iLLiCiTiT and figured out that best approach here would be to set following data into representation's colorspaceData:
|
This is something we were not able to reproduce. When we send job to deadline, the Overall: Issue is the same as #945 . |
So, this is source of the issue
Maya does use colorspace path from scene, and does not count on being able to set custom or built-in paths. |
That logic is not maya specific though - also used by e.g. Houdini passing through that. settings_ocio_config_data = get_imageio_config_preset(
self.data["project_name"],
self.data["folder_path"],
self.data["task_name"],
self.host_name,
anatomy=self.data["anatomy"],
project_settings=self.data["project_settings"],
template_data=template_data,
env=self.launch_context.env,
folder_id=folder_entity["id"],
) Similar to here. And then do in that 'back-resolving': if os.path.realpath(ocio_path) == os.path.realpath(settings_ocio_config_data["path"]):
template = settings_ocio_config_data["template"]
else:
self.log.warning(f"Reconstructing OCIO path template because it's not from settings: {ocio_path}")
# do what it does now We can't just supply the template directly because in many cases we're actually collectiong the OCIO data from the scenefile and are not relying on what the settings defined if the local scene file is actually for whatever reason using something else. (Because e.g. renderer attributes may override it and whatnot). Like you also said. So basically: if the ocio path is the path from settings, then use that template. |
I don't think we're able to reliable find correct template from only path, the path which is set in scene does not have to do anything with current state of settings, it could be set to path which can't be accessed with current settings, we would have to go through all possible templates in settings to guess which should be used (PR #970 trid to achieve). But after some discussion with @antirotor we actually want to make sure it is set to correct colorpsace, in that regards I would rather collect color config from settings, validate if colorconfig from scene is set to same path, and if is not then don't allow to publish. With that approach we will just use template from settings and validate if the path from scene is matching... Question is what to do if colorspace is not enabled in settings? In that case the key should not be used at all, probably. |
Please describe the issue you have encountered?
"config": { "path": "C:/Users/FCervenka/AppData/Local/Ynput/AYON/addons/ayon_ocio_1.1.1/ayon_ocio/configs/OpenColorIOConfigs/aces_1.2/config.ocio", "template": "C:/Users/FCervenka/AppData/Local/Ynput/AYON/addons/ayon_ocio_1.1.1/ayon_ocio/configs/OpenColorIOConfigs/aces_1.2/config.ocio" },
That template key should've kept the templating string from ayon itself, which would be {BUILTIN_OCIO_ROOT} as part of that template
How to replicate the issue?
No response
Additional context:
link to discussion on Discord
(might be a private channel)
This issue was automatically created from Clickup ticket AY-7025
The text was updated successfully, but these errors were encountered: