Hello. Initially I send this to support, but I was advice to post here, so here we go.
Firstly, I’m using a trick @philip.scadding and others from support mentioned to hack the tank_name
field in order to make some folders before the actual project name. This might or might not be related, I’m not sure. Currently my tank name is something like motion/20190101/{project_name}
.
I have some templates like this:
shot_work_area_aftereffects:
definition: "01_PROJECT/AE"
aftereffects_shot_work:
definition: '@shot_work_area_aftereffects/{Project}.aep'
aftereffects_shot_snapshot:
definition: '@shot_work_area_aftereffects/snapshots/{name}.v{version}.{timestamp}.aep'
This is supposed to be linked to tasks linked to a custom entity, specifically CustomEntity05
. But, as you can see, the template doesn’t have any mention of CustomEntity05
and that’s by design.
I created a Project
entry in the templates.yml file.
I also changed the pick_environment.py
to return shot_step
when using the CustomEntity05. Which I’m sure is working. Yet, when trying to save a new file, I get:
TankError: Cannot resolve template data for context 'Production, Motion Video motion_video_test_tank_hack' - this context does not have any associated folders created on disk yet and therefore no template data can be extracted. Please run the folder creation for https://XXXX and try again!
2019-09-30 10:55:36,447 [34444 ERROR sgtk.env.project.tk-aftereffects.tk-multi-workfiles2] File Save - failed to generate path to save to!
Traceback (most recent call last):
File "C:\Users\vitor.hugo\AppData\Roaming\Shotgun\bundle_cache\app_store\tk-multi-workfiles2\v0.11.11\python\tk_multi_workfiles\file_save_form.py", line 698, in _on_save
use_next_version, ext, require_path=True)
File "C:\Users\vitor.hugo\AppData\Roaming\Shotgun\bundle_cache\app_store\tk-multi-workfiles2\v0.11.11\python\tk_multi_workfiles\file_save_form.py", line 360, in _generate_path
raise TankError("Unable to resolve template fields! This could mean there is a mismatch "
I didn’t change anything in the schema because from what I can see there’s nothing to be changed since the shot_area
template is static and the rest only has the Project
key, which is included in the dictionary passed to the new_file method.
Thanks.