Command Line Interface#

usage: validate [-h] [–version] [-e] [-r RULE] [-D RULE] [-c CATEGORY]

[–disable-category CATEGORY] [–requirement REQUIREMENT] [–capability CAPABILITY] [–feature FEATURE] [–disable-feature FEATURE] [–parameter PARAMETER] [-f | –fix | –no-fix] [-p PREDICATE] [–group-by GROUP_BY] [-d | –init-rules | –no-init-rules | –defaultRules | –no-defaultRules] [–variants | –no-variants] [–csv-output CSV] [–json-output JSON] ASSET

Utility for USD validation to ensure assets run smoothly across all OpenUSD products. Validation is based on the USD ComplianceChecker (i.e. the same backend as the usdchecker commandline tool), and has been extended with additional rules as follows:

  • Additional rules applicable in the broader OpenUSD ecosystem.

  • Configurable end-user rules that can be specific to individual company and/or team workflows.

Note this level of configuration requires setting the environment, prior to launching this tool.

positional arguments:
ASSET A single OpenUSD Asset.
Note: This can be a file or folder.
options:
-h, --help

show this help message and exit

--version

show program’s version number and exit

-e, --explain

Provide descriptions for each argument provided and exit.

-r RULE, --rule RULE, --enable-rule RULE
Rule to select. Valid options include:
UsdzPackageValidator
MissingReferenceChecker
StageMetadataChecker
TextureChecker
PrimEncapsulationChecker
NormalMapTextureChecker
KindChecker
ExtentsChecker
TypeChecker
SubdivisionSchemeChecker
ManifoldChecker
IndexedPrimvarChecker
UnusedMeshTopologyChecker
ZeroAreaFaceChecker
WeldChecker
ValidateTopologyChecker
UnusedPrimvarChecker
NormalsExistChecker
NormalsValidChecker
NormalsWindingsChecker
LayerSpecChecker
UsdAsciiPerformanceChecker
DefaultPrimChecker
DanglingOverPrimChecker
MaterialPathChecker
MaterialOutOfScopeChecker
UsdDanglingMaterialBinding
UsdMaterialBindingApi
MaterialUsdPreviewSurfaceChecker
ShaderImplementationSourceChecker
MaterialOldMdlSchemaChecker
UsdGeomSubsetChecker
UsdLuxSchemaChecker
SkelBindingAPIAppliedChecker
UnicodeNameChecker
RigidBodyChecker
ColliderChecker
PhysicsJointChecker
ArticulationChecker
MassChecker (default: [])
-D RULE, --disable-rule RULE, --disableRules RULE
Rule to disable. Valid options include:
UsdzPackageValidator
MissingReferenceChecker
StageMetadataChecker
TextureChecker
PrimEncapsulationChecker
NormalMapTextureChecker
KindChecker
ExtentsChecker
TypeChecker
SubdivisionSchemeChecker
ManifoldChecker
IndexedPrimvarChecker
UnusedMeshTopologyChecker
ZeroAreaFaceChecker
WeldChecker
ValidateTopologyChecker
UnusedPrimvarChecker
NormalsExistChecker
NormalsValidChecker
NormalsWindingsChecker
LayerSpecChecker
UsdAsciiPerformanceChecker
DefaultPrimChecker
DanglingOverPrimChecker
MaterialPathChecker
MaterialOutOfScopeChecker
UsdDanglingMaterialBinding
UsdMaterialBindingApi
MaterialUsdPreviewSurfaceChecker
ShaderImplementationSourceChecker
MaterialOldMdlSchemaChecker
UsdGeomSubsetChecker
UsdLuxSchemaChecker
SkelBindingAPIAppliedChecker
UnicodeNameChecker
RigidBodyChecker
ColliderChecker
PhysicsJointChecker
ArticulationChecker
MassChecker (default: [])
-c CATEGORY, --category CATEGORY, --enable-category CATEGORY
Category to select. Valid options include:
Basic
Geometry
Layer
Layout
Material
Other
Physics (default: [])
--disable-category CATEGORY
Category to disable. Valid options include:
Basic
Geometry
Layer
Layout
Material
Other
Physics (default: [])
--requirement REQUIREMENT
Requirement to add. Valid options include:
AA.001
AA.002
AA.003
AA.OV.001
HI.001
HI.003
HI.004
JT.002
JT.003
JT.ART.002
JT.ART.004
RB.003
RB.005
RB.007
RB.009
RB.COL.004
UN.001
UN.002
UN.006
UN.007
VG.002
VG.007
VG.009
VG.010
VG.011
VG.014
VG.016
VG.018
VG.019
VG.020
VG.025
VG.027
VG.028
VG.029
VG.MESH.001
VG.RTX.001
VM.BIND.001
VM.MDL.001
VM.MDL.002
VM.PS.001
VM.PS.001@1.0.0 (default: [])
--capability CAPABILITY
Capability to add. Valid options include:
atomic_asset
dense_captions
geometry
hierarchy
materials
nonvisual_materials
physics_joints
physics_rigid_bodies
semantic_labels
units
units@1.0.0 (default: [])
--feature FEATURE, --enable-feature FEATURE
Feature to enable. Valid options include:
minimal_placeable_visual
performant_placeable_visual
--disable-feature FEATURE
Feature to disable. Valid options include:
minimal_placeable_visual
performant_placeable_visual
--parameter PARAMETER
Parameter to override in NAME=VALUE format. Can be specified multiple times. (default: [])
-f, --fix, --no-fix

Whether to fix issues. (default: False)

-p PREDICATE, --predicate PREDICATE
Predicate to select. Valid options include:
Any
HasRootLayer
IsError
IsFailure
IsWarning (default: None)
--group-by GROUP_BY

Group by. Valid options include: | requirement | rule_name (default: None)

-d, --init-rules, --no-init-rules, --defaultRules, --no-defaultRules
Whether to use the default enabled validation rules.
Opt-out of this behavior to gain finer control over
the rules using the –categories and –rules flags. (default: True)
--variants, --no-variants
Whether to set variants. Note: This can be expensive. (default: True)
--csv-output CSV

Path to the CSV output file. (default: None)

--json-output JSON

Path to the JSON output file. (default: None)

See https://tinyurl.com/omni-asset-validator for more details.