Basic Project Structure

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.

Hello,

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

  1. Hover over the root folder you want to create a folder below.
  2. right-click and select create a folder.
  3. name it and select the folder type.

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.

Thanks again!

Feel free to create a request here.
https://feedback.ayon.app/

Hi !

If you have ayon-core 1.4.0 or later, you have this feature :

It is not exactly what you ask for (because it does not support asset names), but it could be a workaround.

You set here the disk tree you would like to get :
Web App–>Settings–>Core–>Project Folder Structure

Then you click here :

Web App–>Projects–>[select a project]–>Overview–>Actions(the icon that is on the upper right)–>“Create Project Folder Structure”

It will create on disk the tree.

Thanks!, I saw this part and using it for the main structure, but yes, missing being able to create folders for shots or assets…

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 :

Restart Ayon, start the Launcher, select a folder, click on “Explore here”.

The folder is created on disk, and opened. Shazam !! :sweat_smile:

It’s really dirty, but it shows how flexible Ayon is.

1 Like

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.)