I'm trying to get the Shotgun schema to match our current folder structure, and I'm running into a bit of an issue.
We've got multiple shows we are producing, and a lot of the folders contain the show's three letter initials after the folder name. For example: Maya_AAA
I'm currently doing testing with our asset pipeline, so these are the examples that I'll be using.
The asset_work_area_maya in templates looks something like this:
asset_work_area_maya: 'Maya_{initials}/scenes/{sg_asset_type}/{sg_initials}/{Asset}/{Step}/WIP'
Our folder structure looks like this:
-ABC
--Maya_ABC
--scenes
---asset_type (Character, Prop, etc.)
----sg_initials (A, B, C, etc.)
-----asset (ChairA)
--sequences
--sourceimages
--etc.
I've got everything else figured out, except for getting those initials after Maya to show up. I've managed to get it to work if I make the folder dynamic with the following:
type: "shotgun_entity"
entity_type: "Asset"
name: "Maya_{project.Project.sg_initials}"
filters:
- { "path": "project", "relation": "is", "values": [ "$project" ] }
This works, except when I try to create folders for a new asset I get the (expected) warning of:
ERROR: The path is already associated with Shotgun Asset.
How should I go about getting this to work? Please let me know if you need any further information.