Hi there,
At the moment using the default Anatomy, only assigned in roots where the “jobs” folder is in the network and created the project ok on disk. I had a couple of questions on the project structure.
I created an episode on my test project and an asset, but when generating the folders, it creates that asset on the root of the project, not inside the Assets subfolder. And the same for the Episode (with sequences and shots inside), is creating the folder in the root of the project instead of inside “shots”.
I there an option to generate all the folders (even if empty) on disk? At the moment it created the default folders, but didn’t create a shot or an asset until opened a DCC or explorer on a particular task from the Launcher.
This is absolutely the expected behavior. folders are created on demand.
Currently, the default work anatomy preset creates folders that matches your project hierarchy.
I can see in your screenshot that charSoldier is at the project root.
Once you adjust the structure in your project, it should be mirrored on your file system.
Basically, you just need to
Hover over the root folder you want to create a folder below.
Thanks for your answer @mustafa_jafar , really appreciate it. Folder structure, clear, it works now.
About the actual population and creation of all the folders, I understand and agree, but sometimes if some members of the team a bit out of the main pipeline need the folders structure on disk, just wondering if there is a way.
Just for fun, if you want a very dirty trick (that you should not use in production), look in this folder (on Windows in my case) :
C:\Users\ [yourLogin]\AppData\Local\Ynput\AYON\addons\core_1.5.2\ayon_core\plugins\actions
Edit the open_file_explorer.py file, to add this line (there are 12 spaces before the first word) : os.makedirs(valid_workdir, exist_ok=True)
It’s below line 91 (depending on your version), it now looks like this :
Actually, it’s possible to loop over the project hierarchy on the server, get the corresponding work directory, and create it if it doesn’t exist already.
but, that’d be a different community post. (I’ve some snippets already but I’m not sure how to optimize them since we’ll need to query a lot of data from the server. e.g folder entity and task entity for each entity.)