Tank create folder command

Hi all!

I noticed that if I sun the command:

tank folders

I get a different result in comparison to the one I get when I click on “Create Folders” in the Shotgrid web dropdown menu, (after selecting the assets in the Asset Section).
image

If I use the tank command the folder for each asset is not created, otherwise with the dropdown menu option it is.

What is the reason? Am I doing something wrong or this is an expected behavior?

Hi @aaaa !

The create folders command is context aware. So if you run it from the project overview page you will only get the top level folder structure without assets or shots. If you run it from a task you will get the top level project structure, the asset/shot folder and pipeline step folder structure for that selected task (assuming you are using the basic tk-config-default2). Same goes for the tank command. If you pass it a Task/Asset/Shot as arguments it will create the folders for it. Without arguments it will just create the default project structure.

Hope that helps :slightly_smiling_face:

1 Like

Thank you @Fabian !

Really helpful, creating the folders with this command:

tank Asset testProp01 folders

I get the whole structure for this Asset.

Thank you again for your help :slight_smile:

1 Like