So I’m trying to incorporate the Element context into our schema. and I’m running into some issues I’m not sure how to resolve.
I have the actual schema folders all set up in the config OK. I’ve updated my templates. I’ve added an element.yml and element_step.yml and added both element and element step versions of things as appropriate. Workfiles is giving me a real issue though. It will happily save, and place the file (I’m in nuke for this, if it’s relevant) in the correct location. However workfiles then deactivates, as it apparently doesn’t understand the context it’s now in:
It will not be loaded: Context Comp, Element Man029 can not determine value for fields [‘Step’] needed by template <Sgtk TemplatePath element_work_area_nuke: elements/{sg_element_type}/{Element}/{Step}/work/nuke>
It just happily saved it into “elements/{sg_element_type}/{Element}/{Step}/work/nuke”, for which it understood the step (Comp in this case), so how is it that it can no longer understand that the Step is Comp (and therefore deactivates itself) when it literally just saved correctly, knowing that the Step was Comp? The whole elements Schema is based pretty directly on the Asset schema, and thats all working fine, so I’m really not sure what I’m missing here.
I’m guessing there’s something it doesn’t like about the schema in general, as after creating a new Element, running ‘create folders’ on that id, creates them in the wrong place (under Element, ignoring that they should be under Element/Step, and also not being the ones I’d expect made anyway!), but again if you create the Element and use workfiles to save, it will spool out all the correct folders and save the file in the correct place as per the template.
This is on my R&D config, and as such I’m changing the schema on something that already exists, so I was wondering if maybe it’s reading some old cached version for folder creation, but I trashed my Shotgun folders in appData (Roaming and Local) and that made no difference.
As far as I can tell, I’ve covered everything here: I want to use Toolkit apps with a different entity or custom entity rather than Assets and Shots
Any help greatly appreciated!