USDGENSCHEMA(1)

πŸ“¦
version 26.11.1 Β· 5 versions
, in arch rolling

πŸ’… USDGENSCHEMA(1) πŸ’…

okay so bestie, welcome to usdGenSchema(1) β€” straight out of the User Commands section of the manual. this is the whole vibe, let's get into it 🫢


✨ NAME ✨

usdGenSchema β€” literally the manual page for usdGenSchema 26.11.1, no cap πŸ’–


🌸 DESCRIPTION 🌸

first up, the tool hits you with this big dramatic banner box before it even says hi. here it is verbatim, because it's iconic and also important:

#################################################################################################
#  USD_DISABLE_PRIM_DEFINITIONS_FOR_USDGENSCHEMA is overridden to
'true'.  Default is 'false'.  #
#################################################################################################

so yeah β€” that env var gets overridden to 'true', and the default is 'false'. noted πŸ“Œ

then comes the usage line, serving full main-character energy:

usage: usdGenSchema [-h] [-v] [-q] [-n NAMESPACE [NAMESPACE ...]]
[-t TEMPLATEPATH] [-hts HEADERTERMINATORSTRING]
       [schemaPath] [codeGenPath]

and what does it actually do? it's giving code generator realness:

Generate C++ schema class code from a USD file. πŸ”₯


πŸŽ€ positional arguments πŸŽ€

  • schemaPath β€” the source USD file where your schema classes are defined. [Default: ./schema.usda] πŸ“„
  • codeGenPath β€” the target directory where the code should be generated, i.e. where all the magic lands. [Default: .] πŸ“

πŸ‘‘ options πŸ‘‘

  • -h, --help β€” show this help message and then dip (exit). πŸ™ˆ
  • -v, --validate β€” verify that the source files are unchanged. like a vibe check, but for files ✨
  • -q, --quiet β€” do not output text during execution. shhh, no yapping 🀫
  • -n, --namespace NAMESPACE [NAMESPACE ...] β€” wrap the code in this specified namespace. multiple arguments get interpreted as a nested namespace. the leftmost argument is treated as the outermost namespace, and the rightmost argument is the innermost β€” so left = outside, right = inside, inny-outy energy 🧚
  • -t, --templates TEMPLATEPATH β€” directory containing schema class templates. [Default: first directory that exists from this list: /build/usd /pkg/usd/usr/bin/codegenTemplates:/build/usd/pkg/usd/u sr/lib/usd/usd/resources/codegenTemplates] πŸŽ€
πŸ’€ real talk: that default list is line-wrapped mid-word in the output β€” /build/usd/pkg/usd/u and sr/lib/usd/usd/resources/codegenTemplates are one path split across lines. don't come for me, I'm just the messenger. copy it from the actual output, iykyk.
  • -hts, --headerTerminatorString HEADERTERMINATORSTRING β€” the string used to terminate generated C++ header files, after the custom code section. [Default: #endif] ⭐

and that's the whole page, bestie β€” you ate that πŸ“

signing off: usdGenSchema 26.11.1, dated October 2026, and yes the manual page itself is literally USDGENSCHEMA(1) β€” periodt πŸ’œ

πŸ“¦ where this page comes from