Dynamic folder not associated with an entity type?

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:




            ---asset_type (Character, Prop, etc.)

                ----sg_initials (A, B, C, etc.)

                    -----asset (ChairA)





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}"
- { "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.

1 条评论

  • 0


    This was solved in a support ticket thread. Essentially, this isn't possible to do in a clean way at the moment. We've added an internal ticket to support being able to use Shotgun queries in static folder names which would make this work. We've had some other requests for a similar feature and it'd be cool to support that.

    We'll update this thread when we have more info.