More standard available Variables
We need to have more available variables for in the pipeline.
Like current Folder name (like shotgrid has shot, sequence, etc etc)
For most programs, like houdini, nuke, maya etc you can get around it with getting the “AYON_FOLDER_PATH” split it in ptyhon and source what you need.
But again, not artist friendly, an “AYON_FOLDER_NAME” or parent folder or even shot/ sequence etc would be really helpfull.
But for let say something like OCIO witch is just a YAML and can’t do any splitting, it’s now impossible to setup a proper OCIO config with show/ shot luts.
The only way to use this now is create your own custom pre-launch hook.
But this can be problematic, or cumbersome if you want to use the Batch deliver etc.
And this is such a massive basic feature to be able to configure your OCIO that this shouldn’t have to be done by manually creating custom pre-hooks etc.
- Affects
- Core
Log in to comment and vote
Comments6
robert okker
Now that i think of it, just expose all the anatomy template keys as variables.
Then we have full control and flexibility.
Still there are use cases for prehooks etc., but a whole lot less
robert okker
Ok i think i allready have an pre_hook written that adds all the anatomy template keys to variables.
Will push it on Github if people want or you can check here.
https://github.com/robertokker/ayon-core/blob/preHook_variables/client/ayon_core/hooks/pre_variables.py
Mustafa Zaky Jafar
Thank you.
Could you make a PR?
OR Would you mind if I chreeypicked it and made a PR ?
robert okker
Yeah sure will add it.
But my initial idea was to use it for the OCIO config.
But i just made a way cleaner setup and made a PR for that.
But if you want i can still add this
Mustafa Zaky Jafar
I think linking that PR here can be useful for future reference.
Doesn’t the PR suffice? if it does suffice, I think no need to add it.
robert okker
making some updates on it so it creates some cleaner variables and will make a PR