asset-folder-structure#
Code |
NP.005 |
|---|---|
Validator |
|
Compatibility |
core-usd |
Tags |
π |
Summary#
The folder holding the main asset file must not contain any other USD file.
Description#
The main asset fileβs own folder may hold exactly one USD file: the main asset file itself. Supporting subfolders (e.g. materials/, textures/, payloads/) may sit next to the main asset file and may contain any number of USD files, or none. This requirement does not constrain how many folders deep the main asset file is, and does not require the file name to relate to any containing folderβs name; see NP.002 (file-naming-conventions) for file naming and NP.003 (directory-structure) for directory naming.
Why is it required?#
Prevents stray or duplicate root-level USD files from competing with the main asset file as the entry point
Facilitates automated asset processing and validation
Supports collaborative development workflows
Examples#
# Valid: sole USD file in its folder
# chair/
# βββ foo/
# βββ chair.usd # Main asset file (sole USD in its folder)
# βββ materials/
# βββ materials.usd
# Valid: subfolder may contain multiple USD files
# chair/
# βββ foo/
# βββ chair.usd # Main asset file (sole USD in its folder)
# βββ materials/
# βββ wood.usd
# βββ fabric.usd
# Valid: main asset file at the root, with no other USD file alongside it
# chair/
# βββ chair.usd # Main asset file (sole USD in its folder)
# βββ materials/
# βββ materials.usd
# Invalid: multiple USD files in the main asset file's own folder
# chair/
# βββ foo/
# βββ chair.usd # Main asset file
# βββ variant.usd # Extra USD file alongside the main asset file
# βββ materials/
How to comply#
Keep exactly one USD file (the main asset file) directly in the folder that holds it (no additional
.usd/.usda/.usdc/.usdzsiblings)Place supporting files (materials, textures, payloads, etc.) in subdirectories next to the main asset file; these subfolders may contain any number of USD files