USDINITSCHEMA(1)
β¨ 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#includestatements in the generated files for this module. and here's the tea for external (non-Pixar) plugins: we recommend settinglibraryPathto.so that the headers inside thesrcdirectory get included in the generated files π¦pxrPrefixβ prefix to the path frompxrto this library. like, forpxr/usd/usd, the prefix would bepxr/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 themoduleDeps.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
- 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