Is it possible to have a static folder named the same as a dynamic parent folder which is used to define context / templates from the path?
For example, is it possible to have a folder named “project” under them main root folder? For a project called “pipe”, it would be /projects/pipe/project/. Under that folder would be a custom entity, “Project Entities”, which will be entities with tasks that don’t link to any asset, shot, etc., but rather to the project itself (such as script, developmental work, full show ridethroughs, etc.)
I’ve tried two ways, each with an error. First method: create a static folder called “project” in the schema, with a dynamic “project-entity” folder underneath (same setup as Assets, Shots, etc.). But those dynamic folders throw an error when they look for the parent “$project”, which are called for in project-entity.yml, saying project.yml is missing. It’s not missing, it’s above the static “project” folder, but toolkit throws an error when it hits the static folder. Is it possible for those dynamic folders to skip this static “project” folder and find the dynamic “project.yml” above it, which resolves to “pipe”? I’ve tried, among other things, adding the following to project-entity.yml:
But it does not help. The error is thrown on any folder creation, like opening software. No folders are created. All necessary paths in templates.yml do match the schema.
The second method is to bring the project-entity folder to the top level (removing the static “project” folder), and adding a folder to the project-entity.yml name:
This actually works well: folders are created and software opens correctly. However there is some sort of local sync issue where i have to run the tank command
on each local machine whenever a new Project Entity is created. After that’s run, it works.
This sync issue has something to do with the “project” folder name. If i change the folder name to something else (and update templates.yml to match), like:
Everything works fine and no sync is needed.
So yes, one simple option is to just choose a different folder name. But I want to know if there is a way to solve the issue and use that folder name.