Let's consider the details of a specific example of a configuration file.
{
"protocol": {
"cerebro": ["ftp:ftp://ftp.example.com", "network"],
"maya": "network"
},
"project_path": [
{
"project_name": "",
"task_activity": "",
"paths": [
"//s2/front/connector.files",
"/Volumes/front/connector.files",
"/s2/front/connector.files",
"/ftp2/front/connector.files"
]
}
],
"file_path": [
{
"folder_path": "",
"task_activity": "",
"name": "$(task_name)",
"publish": "$(url[0])/$(url[1])/$(url[2])",
"version": "$(url[0])/$(url[1])/$(url[2])/versions",
"ver_prefix": "_v",
"ver_padding": "3"
},
{
"folder_path": "/$(url[0])/Environment",
"task_activity": "texturing",
"name": "$(task_name)",
"publish": "$(url[0])/$(url[1])/$(url[2])/$(soft_folder)/",
"version": "$(url[0])/$(url[1])/$(url[2])/$(soft_folder)/versions",
"ver_prefix": "_v",
"ver_padding": "2"
}
],
"soft_folder":
{
"maya": "3D"
}
}
In this example protocol contains a description of file service connections for Cerebro и Autodesk Maya apps. Cerebro supports two protocols (FTP and local area network), while Autodesk Maya may connect only via the local area network.
The project_path section contains one structure with a blank project name and activity type, i.e., with default values for any projects/tasks. The structure contains four possible paths to the root directory with project files—this is the path to the public folder, therefore, to ОС Windows, Linux, Mac OS X и FTP.
The file_path section contains two structures. The first one describes the default paths and names for any projects and sections they contain, while the second one is used only for texturing tasks for any project in the «Environment» subsection. The second structure also includes the $(soft_folder) variable, the value of which is specified in the respective section.
For example, for a task in Cerebro that has URL cerebro:/Cartoon_1/Ep_01/Sc_01/modeling, according to the structure in project_path and the first structure in the file_path, we end up with the following file location Autodesk Maya в ОС Windows:
main file version:
//s2/front/connector.files/Cartoon_1/Ep_01/Sc_01/modeling.manumber of the version (number 1, 2, 3, ...)
//s2/front/connector.files/Cartoon_1/Ep_01/Sc_01/versions/modeling_v001.ma
For a task containing URL cerebro:/Cartoon_2/Environment/Johns House/texturing, according to the structure in project_path and the second structure in the file_path section, we end up with the following file location:
main file version:
//s2/front/connector.files/Cartoon_2/Environment/Johns House/3D/texturing.manumber f the version type: //s2/front/connector.files/Cartoon_2/Environment/Johns House/3D/versions/texturing_v01.ma
In the second example of the task, a 3D subdirectory is added to be used instead of Autodesk Maya software according to the soft_folder structure, and a different version numbering system is used.