Skip to content
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

AYON hierarchy-aware SG->AYON sync #137

Open
2 tasks done
jakubjezek001 opened this issue Oct 3, 2024 · 1 comment
Open
2 tasks done

AYON hierarchy-aware SG->AYON sync #137

jakubjezek001 opened this issue Oct 3, 2024 · 1 comment
Labels
type: enhancement Improvement of existing functionality or minor addition

Comments

@jakubjezek001
Copy link
Member

jakubjezek001 commented Oct 3, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Please describe the feature you have in mind and explain what the current shortcomings are?

SG doesn't have the ability to structure entities into generic folders as AYON.
Using SG's project tracking features allows you to create hierarchies like Episode->Sequence->Shot however it's currently not possible to place these SG hierarchies in a custom AYON folder.
You could probably disable SG project tracking and do all linking manually but I don't believe anyone is doing something like this.
You can also use SGTK with tk-config-default2 and storage root links, however imho we shouldn't depend on it.

I believe this issue boils down to being able to use custom AYON folders as roots for SG hierarchies.

Syncing AYON entities to SG is easier since we just need folder_name and folder_type of AYON and create the SG entities respectively as SG takes care of the linking.

How would you imagine the implementation of the feature?

User Stories

As a dev I want to configure root folders for synced entities in AYON's hierarchy in order to integrate them better into custom AYON hierarchies.

As a user I want to use my custom AYON hierarchy for synced entities in order to place remotely created entities (SG) in the same folder structure I'd manually do in AYON.

As a user I wnat to use AYON's folder structure for the pipeline tools and local folder structure but create and organize my shots and assets in SG.

Example

Let's assume we're using SG project tracking with:

  • Asset: AssetType->Asset
  • Episode: flat
  • Sequence: Episode->Sequence
  • Shot: Episode->Sequence->Shot

In AYON we're using this hierarchy.
* marks non Folder type AYON folders
** marks AYON tasks

.
├── pre
│   ├── references
│   ├── storyboards
│   └── concept**
├── editorial
│   ├── dailies
│   ├── online**
│   └── offline**
├── build
│   └── assets
│       └── Prop
│       ├── Character
│       └── Environment
├── post
│   ├── schedules
│   └── episodes
│       └── ep01*
│           ├── seq01*
│           └── ep02*
└── deliveries
    ├── VendorA
    │   └── <SG_PLAYLIST>
    └── Client
        └── <SG_PLAYLIST>

I want the SG episodes to end up in AYON at /post/episodes/, the shots in /post/episodes/{episode}/{sequence}/ and the assets in /build/assets/{asset[type]}/.

Suggestion

We get SG's project tracking settings for enabled entity types and expose them as part of a new settings field in the compatibility settings. Each SG tracking setting gets a string field representing the AYON folder hierarchy to follow.
E.g.:

SG Asset: AssetType->Asset --> AYON hierarchy to follow: /build/assets/{asset[type]}/

If a user doesn't want to use custom AYON hierarchies and basically start with a blank AYON project populated from SG they'd leave all lineedits empty and SG's project tracking settings will be followed (even if flat? error otherwise?).

I think this way we could support any AYON hierarchy with any SG project tracking.

Are there any labels you wish to add?

  • I have added the relevant labels to the enhancement request.

Describe alternatives you've considered:

No response

Additional context:

No response

@jakubjezek001 jakubjezek001 added the type: enhancement Improvement of existing functionality or minor addition label Oct 3, 2024
@jakubjezek001 jakubjezek001 changed the title aSDFASDFASD AYON hierarchy-aware SG->AYON sync Oct 3, 2024
@kalisp
Copy link
Member

kalisp commented Oct 10, 2024

I think that base of this is already in #129

You could configure starting location (hierarchy in AYON) for these types.
image

Current implementation differentiate between shots with OR without sequence.
Without sequence are put into shots folder, with sequence under sequences folder.
Not yet implemented requirement is to have one folder for sequences, one for shots, shots shouln't appear under sequences at all.

It seems that arbitrary separation on asset, shots, sequences is not supporting this use case (and it is pretty much hard-coded).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

No branches or pull requests

2 participants