0

Schema configuration

Hi,

I have a Shoot entity that contains one or more Session entities. With shotgun schema, I am able to set up a file system where there is a folder for each, and the session folder(s) are contained within the shoot folder. If I used the Shoot's code field and Session's name field in instructing schema how to name the folders, then my tank.preview_filesystem_structure will give expected results that look something like this:

\\project_root\shoot_code\session_name

Now, I need to group the shoots by their type, so that my output would be something like this:

\\project_root\shoot_type\shoot_code\session_name

I am able to achieve that by creating additional folder in the schema, along with yaml file that lists Shoot as the entity and sg_type as a field to use to name the folder.

However, whenever I try to preview the folders for a given shoot, there are duplicate entries in the list:

\\project_root\shoot_type\

\\project_root\shoot_type\shoot_code

\\project_root\shoot_type\shoot_code

Which I guess can be explained by the fact that the Shoot is specified as entity on two levels in the hierarchy ( one in the yaml corresponding to the shoot_type folder and another in yaml corresponding to the shoot_code folder )

While its not a big deal when we talk about folder creation ( some folders are just going to be created twice ),  I am wary of the other potential problems that might arise down the road, which could turn into a big problem if the whole studio is already set up to use the above mentioned structure. How do you recommend I achieve the desired structure in a safe way?

 

Regards,

Serge

0 comments

Please sign in to leave a comment.