USDUPDATECRATE(1)
πΈ USDUPDATECRATE π
okay so bestie, welcome to the manual page for usdupdatecrate β that's usdupdatecrate 26.11.1, from the User Commands girlies, and she's here to hunt down your dusty old Pixar USD crates. sit down, hydrate, let's go π«Ά
β¨ DESCRIPTION β¨
so the vibe is: this is the usage line, and honestly it's giving "the group chat pinned message." here's the whole thing verbatim, no notes, keep it in your notes app:
usage: usdupdatecrate [-h] [--root DIR] [--olderThan VERSION]
[--exclude PATTERN] [--output FILE]
[--saveWorkList FILE] [--fromWorkList FILE] [--update |
--cleanup] [--noCleanup] [--preserveAttrs | --noPreserveAttrs]
[--preserveOwner] [--workers N] [--batchSize N] [--walkThreads N]
[--quiescenceTimeout SECONDS] [--perFileTimeout SECONDS]
bestie, this tool finds Pixar USD crate files (*.usd/*.usdc) that are older than a given version, and optionally updates them. literally that's the whole job π
and here's the default behaviour, which honestly slays because it's so safe: by default the script just reports the matching files to stdout and takes no action. cute, non-committal, low-stakes. π
with --update though? she gets to work: it opens each file via Sdf.Layer.FindOrOpen() and re-exports it, which causes USD to write the file at the current crate version. that's how the upgrade actually happens β¨
updates are performed safely, and no cap this is the good part: each file is exported to a sibling temp path, its new crate version is verified, and only then is the temp atomically renamed over the original. the original is left untouched on any failure. main character energy with a seatbelt on π
β οΈ note on hard links β an update replaces the original directory entry via os.replace(). Any other names that were hard-linked to the original inode continue to refer to the unchanged inode and so retain the old content. so like, if you hard-linked a file, that other name is NOT getting the glow-up, bestie. it's staying exactly as it was and there is nothing you can do about it π
π OPTIONS π
every single one, we're not skipping a thing, periodt.
-h,--helpβ show this help message and exit. the "what does this do again" button, iconic.--root DIRβ root directory to search (default: current working directory). the starting point, the home base, the place she starts snooping πΈ--olderThan VERSIONβ identify crate files with version older than this, formattedmajor.minor.patch, default0.8.0. so it's a threshold thing β anything below it is getting flagged, no exceptions π--exclude PATTERNβ exclude files whose path relative to--rootmatches thisfnmatchpattern. may be specified multiple times (stack 'em, bestie). excluded subdirectories are pruned before descent β like, she won't even go in there, she's not looking, she doesn't want to know π¦--output FILEβ write the matching file list toFILEinstead of stdout. for when you want receipts, saved, in a file.--saveWorkList FILEβ save the deduplicated to-update file list toFILEbefore any update runs. useful as a manual two-step staging point or for crash recovery. so if things go sideways you have the list, and honestly that's iykyk π§--fromWorkList FILEβ read candidate files fromFILEinstead of walking--root. when this is set,--root,--exclude, and--walkThreadsare ignored. literally they do not get a vote π--updateβ update matched files by re-exporting them viaSdf.Layer. this is the actual "do the thing" flag. the one that makes it happen π₯--cleanupβ standalone mode: walk--rootand remove stale*.usdupdatecrate.*.tmp.*files left behind by crashed or killed prior runs, then exit. honors--excludeand--walkThreads. so she cleans up the mess from the last girl's shift and goes home π--noCleanupβ during an--updaterun, skip the implicit removal of stale temp files discovered by the walk. has no effect in--cleanupmode (which is itself a cleanup β like, girl, that's the whole point, why would you turn off the cleanup of the cleanup π)--preserveAttrsβ preserve the original file's mode and group on the updated file. if either cannot be matched (e.g. you are not a member of the original's group), the update for that file is treated as failed and the original is left untouched. the owner is not preserved unless--preserveOwneris also given. default: on (POSIX), unsupported (Windows). respect the original, she has a whole identity π«Ά--noPreserveAttrsβ disable preservation of the original mode and group. updated files take on the running user's primary group (or the directory's group, if it is setgid) and a umask-respecting mode. a fresh start, a clean slate, a rebrand π--preserveOwnerβ also preserve the original file's owner. off by default because changing a file's owner requires root; without it, updated files are owned by the running user. a file whose owner cannot be set is treated as failed and left untouched. POSIX only. so like, if you don't have root, don't get cute, ok? π₯--workers Nβ explicit number of worker processes. overrides--batchSize. you say how many, that's how many π--batchSize Nβ number of files per pool task (default:16). files are split into batches of this size and dispatched across workers viaimap_unordered. smaller is safer (smaller crash blast radius, better work-stealing); larger amortizes per-task overhead. ignored if--workersis given. so it's a tradeoff, choose your fighter β¨--walkThreads Nβ number of threads for parallel directory enumeration (default:32). set to1to use a single-threadedos.walk()instead. old school, one thread, no drama π--quiescenceTimeout SECONDSβ update pool driver: if no chunk-result arrives for this many seconds, treat any not-yet-completed chunks as crashed/hung and recover them via per-file subprocess isolation (default:120). raise this if you have legitimately long-running chunks. so if a chunk's just being slow and dramatic, give it more time before assuming the worst π--perFileTimeout SECONDSβ recovery: hard cap on a single file's isolated subprocess (default:60). if exceeded, the subprocess is terminated and the file recorded as anERROR_CRASH. that's the hard limit, bestie, no negotiating β
and that's the whole page, mwah π
sign-off szn β this whole vibe is usdupdatecrate 26.11.1, stamped October 2026, and yes the footer said USDUPDATECRATE(1) one last time because she's consistent like that. go forth, update those crates, and remember: the original is left untouched on any failure, so honestly, you literally cannot lose. πβ¨π
π¦ where this page comes from
- arch rolling: usd 26.11.1-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms