Skip to content

main

Main settings for USD on AYON server.

AppPlatformURIModel

Bases: BaseSettingsModel

Application platform URI model.

Source code in server/settings/main.py
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
class AppPlatformURIModel(BaseSettingsModel):
    """Application platform URI model."""

    _layout = "expanded"
    app_name: str = SettingsField(
        title="App Name", description="Application name, e.g. maya/2025"
    )
    # TODO: we need to take into account here different linux flavors
    platform: str = SettingsField(
        title="Platform",
        enum_resolver=platform_enum,
        description="windows / linux / darwin",
    )
    uri: str = SettingsField(
        title="Repository Object URI",
        description=(
            "Path to USD Asset Resolver plugin zip file on the LakeFs server, "
            "e.g: `lakefs://ayon-usd/V001/AyonUsdResolverBin/Hou/ayon-usd-resolver_hou19.5_linux_py37.zip`"  # noqa
        ),
    )

AyonResolverSettings

Bases: BaseSettingsModel

AYON USD resolver Settings

Source code in server/settings/main.py
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
class AyonResolverSettings(BaseSettingsModel):
    """AYON USD resolver Settings"""

    _layout = "collapsed"

    ayon_log_lvl: str = SettingsField(
        "WARN",
        title="Resolver Log Level",
        enum_resolver=log_lvl_enum,
        description="Set verbosity of the AyonUsdResolver logger",
    )
    ayon_file_logger_enabled: str = SettingsField(
        "OFF",
        title="Resolver File Logger Enabled ",
        enum_resolver=file_logger_enum,
        description="Enable or disable AyonUsdResolver file logger",
    )
    file_logger_file_path: str = SettingsField(
        "",
        title="Resolver File logger file path",
        description=(
            "Allows you to set a custom location where the file logger will "
            "export to. This can be a relative or absolute path. This is only "
            "used if `ayon_file_logger_enabled` is enabled."
        ),
    )
    ayon_logger_logging_keys: str = SettingsField(
        "",
        title="AyonCppApi Logging Keys",
        enum_resolver=logger_logging_keys_enum,
        description="List of extra logging options for the AyonCppApi",
    )

BinaryDistributionSettings

Bases: BaseSettingsModel

Binary distribution of USD and AYON USD Resolver

Source code in server/settings/main.py
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
class BinaryDistributionSettings(BaseSettingsModel):
    """Binary distribution of USD and AYON USD Resolver"""

    _layout = "collapsed"

    enabled: bool = SettingsField(False)

    server_uri: str = SettingsField(
        "https://lake.ayon.cloud",
        title="Server Uri",
        description="The url to your LakeFs server.",
    )
    server_repo: str = SettingsField(
        "lakefs://ayon-usd/v0.2.0/",
        title="Repository Uri",
        description="The url to your LakeFs Repository Path",
    )
    access_key_id: str = SettingsField(
        "{AYON_Distribution_Key_Id}",
        title="Access Key Id",
        description="LakeFs Access Key Id",
    )
    secret_access_key: str = SettingsField(
        "{AYON_Distribution_Access_Key}",
        title="Access Key",
        description="LakeFs Access Key",
    )
    asset_resolvers: list[AppPlatformPathModel] = SettingsField(
        title="Resolver Application Paths",
        description="Allows an admin to define a specific Resolver Zip for a specific Application",
        default=[
            AppPlatformPathModel(
                name="maya/2024",
                platform="linux",
                lake_fs_path="AyonUsdResolverBin/MayaLinux/Maya2024_2_Py310_Linux_Linux_x86_64.zip",
            ),
            AppPlatformPathModel(
                name="maya/2024",
                platform="windows",
                lake_fs_path="AyonUsdResolverBin/MayaWin/Maya2024_2_Py310_Win_Windows_AMD64.zip",
            ),
            AppPlatformPathModel(
                name="maya/2025",
                platform="linux",
                lake_fs_path="AyonUsdResolverBin/MayaLinux/Maya2025_Py311_Linux_Linux_x86_64.zip",
            ),
            AppPlatformPathModel(
                name="maya/2025",
                platform="windows",
                lake_fs_path="AyonUsdResolverBin/MayaWin/Maya2025_Py311_Win_Windows_AMD64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/19-5Py37",
                platform="linux",
                lake_fs_path="AyonUsdResolverBin/HouLinux/Houdini195_Py37_Linux_Linux_x86_64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/19-5",
                platform="linux",
                lake_fs_path="AyonUsdResolverBin/HouLinux/Houdini195_Py39_Linux_Linux_x86_64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/19-5Py37",
                platform="windows",
                lake_fs_path="AyonUsdResolverBin/HouWin/Houdini195_Py37_Win_Windows_AMD64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/19-5",
                platform="windows",
                lake_fs_path="AyonUsdResolverBin/HouWin/Houdini195_Py39_Win_Windows_AMD64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/20-0",
                platform="linux",
                lake_fs_path="AyonUsdResolverBin/HouLinux/Houdini20_Py310_Linux_Linux_x86_64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/20-0Py39",
                platform="linux",
                lake_fs_path="AyonUsdResolverBin/HouLinux/Houdini20_Py39_Linux_Linux_x86_64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/20-0",
                platform="windows",
                lake_fs_path="AyonUsdResolverBin/HouWin/Houdini20_Py310_Win_Windows_AMD64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/20-0Py39",
                platform="windows",
                lake_fs_path="AyonUsdResolverBin/HouWin/Houdini20_Py39_Win_Windows_AMD64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/20-5",
                platform="linux",
                lake_fs_path="AyonUsdResolverBin/HouLinux/Houdini205_Py311_Linux_Linux_x86_64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/20-5Py310",
                platform="linux",
                lake_fs_path="AyonUsdResolverBin/HouLinux/Houdini205_Py310_Linux_Linux_x86_64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/20-5",
                platform="windows",
                lake_fs_path="AyonUsdResolverBin/HouWin/Houdini205_Py311_Win_Windows_AMD64.zip",
            ),
            AppPlatformPathModel(
                name="houdini/20-5Py310",
                platform="windows",
                lake_fs_path="AyonUsdResolverBin/HouWin/Houdini205_Py310_Win_Windows_AMD64.zip",
            ),
            AppPlatformPathModel(
                name="unreal/5-4",
                platform="linux",
                lake_fs_path="AyonUsdResolverBin/UnrealLinux/Unreal5_4_Py39_Linux_Linux_x86_64.zip",
            ),
            AppPlatformPathModel(
                name="unreal/5-4",
                platform="windows",
                lake_fs_path="AyonUsdResolverBin/UnrealWin/Unreal5_4_Py39_Win_Windows_AMD64.zip",
            ),
            AppPlatformPathModel(
                name="ayon_usd/23-5",
                platform="linux",
                lake_fs_path="AyonUsdResolverBin/AyonUsdLinux/AyonUsd23_5_Py39_Linux_Linux_x86_64.zip",
            ),
            AppPlatformPathModel(
                name="ayon_usd/23-5",
                platform="windows",
                lake_fs_path="AyonUsdResolverBin/AyonUsdWin/AyonUsd23_5_Py39_Win_Windows_AMD64.zip",
            ),
        ],
    )
    lake_fs_overrides: list[AppPlatformURIModel] = SettingsField(
        title="Resolver Application Overrides",
        description=(
            "Allows to define a specific Resolver Zip for a specific Application"
        ),
        default_factory=list,
    )

UsdLibConfigSettings

Bases: BaseSettingsModel

Settings for USD

Source code in server/settings/main.py
277
278
279
280
281
282
283
284
285
class UsdLibConfigSettings(BaseSettingsModel):
    """Settings for USD"""

    _layout = "collapsed"
    usd_tf_debug: str = SettingsField(
        "",
        title="Tf Debug Variable for Debugging USD",
        description="",
    )

file_logger_enum()

Return enumerator to enable or disable the file logger.

Source code in server/settings/main.py
39
40
41
42
43
44
def file_logger_enum():
    """Return enumerator to enable or disable the file logger."""
    return [
        {"label": "Off", "value": "OFF"},
        {"label": "On", "value": "ON"},
    ]

log_lvl_enum()

Return enumerator for supported log levels.

Source code in server/settings/main.py
27
28
29
30
31
32
33
34
35
def log_lvl_enum():
    """Return enumerator for supported log levels."""
    return [
        {"label": "Info", "value": "INFO"},
        {"label": "Error", "value": "ERROR"},
        {"label": "Warn", "value": "WARN"},
        {"label": "Critical", "value": "CRITICAL"},
        {"label": "Off", "value": "OFF"},
    ]

logger_logging_keys_enum()

Return enumerator for AyonCpp Logging Keys.

Source code in server/settings/main.py
16
17
18
19
20
21
22
23
def logger_logging_keys_enum():
    """Return enumerator for AyonCpp Logging Keys."""
    return [
        {"label": "Off", "value": ""},
        {"label": "Api Debug", "value": "AyonApi/"},
        {"label": "Env Debug", "value": "AyonApiDebugEnvVars/"},
        {"label": "All", "value": "AyonApi/AyonApiDebugEnvVars/"},
    ]

platform_enum()

Return enumerator for supported platforms.

Source code in server/settings/main.py
 7
 8
 9
10
11
12
13
def platform_enum():
    """Return enumerator for supported platforms."""
    return [
        {"label": "Windows", "value": "windows"},
        {"label": "Linux", "value": "linux"},
        {"label": "MacOS", "value": "darwin"},
    ]