-
Notifications
You must be signed in to change notification settings - Fork 128
API: Query workfiles for an asset #3389
Comments
I would say that First must be handled how to define scene directory.
If scene dir is considered as it should stay, then it require to separate it to something like "workarea", "workdir" and "workfile" and all of them must be defined in some predictable way not based on environment variables or unreachable in-host implementation (not use We plan that host will have public class (like modules) where some public functions could be. There could be variant of Note: |
For me it doesn't technically need to be the environment variable. But we would however prefer to set a specific subfolder within the application's directory per application. So that e.g. maya has Would love to see this solved in a way that works completely with OpenPype and then remove the We are using |
I see 2 possible ways:
Option 2 seems better and probably with less changes. Both would require that there is some host public function that would handle it (replacement of |
Number 2) sounds the best way to do it. It'd just be a global template setting in the project for the application to have that extra 'scenes' folder. Actually thinking about it now... this could already be managed potentially with workfile templates completely if those can be defined per project per application (as long as the maya workspace (the task root directory in the app) can be the folder without that extra 'template folder'. Like if the Work template could have a "scenes dir" entry as well and how it could potentially be customizable per application as is also done for Unreal? Bonus points at least if the workdir setting can be set per project per application. |
With the dropped support for SCENEDIR in Ayon I believe this is somewhat more accessible already in AYON. |
Is your feature request related to a problem? Please describe.
I'd like to easily query the existing workfiles for an asset. Or at least have a clear cut way to find the workfiles for an asset.
The implementation would be used to batch detect the latest workfiles and do automation with that, things like:
I couldn't find anything that resembled a stable solution that worked out of the box.
Describe the solution you'd like
AVALON_SCENEDIR
I'd like to be able to do:
Potentially this is fine too if it could find the correct
workdir
including the applications' expectedAVALON_SCENEDIR
.Describe alternatives you've considered
Draft implementation I had set up:
Additional context
This might already be solved with a clear example on how to approach this best.
[cuID:OP-3439]
The text was updated successfully, but these errors were encountered: