USDINITSCHEMA(1)

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

✨ USDINITSCHEMA ✨

okay bestie so this is usdInitSchema β€” manual page for usdInitSchema version 26.11.1 πŸ’… and honestly? it's the little setup goblin that gets your schema classes ready to serve. no cap.


🌸 DESCRIPTION 🌸

here's the whole vibe, literally:

usage: usdInitSchema [-h] [-v] [-q] [--genModuleDeps] [-t TEMPLATEPATH]

       codeGenPath libraryPath [pxrPrefix]

so what does it do? it sets up build necessities for schema classes πŸ› οΈ like, it generates templates for the CMakeLists.txt, __init__.py, schema.usda, module.cpp, and a user doc β€” but only if they do not already exist. it's giving "respectful houseguest", it will not touch your stuff 🫢

πŸŽ€ positional arguments

  • codeGenPath β€” the target directory where the code should be generated πŸ‘‘ ngl you can literally just pass . for the current directory. iconic.
  • libraryPath β€” the partial path that gets used to prefix #include statements in the generated files for this module. and here's the tea for external (non-Pixar) plugins: we recommend setting libraryPath to . so that the headers inside the src directory get included in the generated files πŸ¦‹
  • pxrPrefix β€” prefix to the path from pxr to this library. like, for pxr/usd/usd, the prefix would be pxr/usd. and if you're on a non-OpenUSD build system? just omit this argument entirely, no stress πŸ’œ

πŸ”₯ options

  • -h, --help β€” shows this help message and exits. the classic. the icon. the moment. ✨
  • -v, --validate β€” verifies that the source files are unchanged πŸ‘€ yep, it checks.
  • -q, --quiet β€” do not output text during execution 🀫 shy mode activated.
  • --genModuleDeps β€” generates a template for the moduleDeps.cpp. and heads up bestie: this template will need to be filled in and kept up to date with library dependencies if you are not using the OpenUSD build system β€” so that's on you, not on the tool 😭
  • -t, --templates TEMPLATEPATH β€” directory containing schema class templates. the default is the first directory that exists from this list:
/build/usd/pkg/usd/usr/bin/codegenTemplates:/build/usd/pkg/usd/usr/lib/usd/usd/resources/codegenTemplates

so it goes looking, in order, and grabs the first one that actually exists 🧚 literally a scavenger hunt.

real talk: --genModuleDeps hands you a template, not a finished file β€” you gotta fill it in and keep it updated yourself if you're outside the OpenUSD build system. no autopilot, sorry πŸ₯²

aaaand that's the whole page, you ate that πŸ’– huge shoutout to usdInitSchema 26.11.1, born October 2026 β€” go set up those build necessities, main character πŸŒˆπŸ’…

πŸ“¦ where this page comes from