Command Line Interface#
- usage: validate [-h] [–version] [-e] [-r RULE] [-D RULE] [-c CATEGORY]
[–disable-category CATEGORY] [–requirement REQUIREMENT] [–capability CAPABILITY] [-f | –fix | –no-fix] [-p PREDICATE] [-d | –init-rules | –no-init-rules | –defaultRules | –no-defaultRules] [–variants | –no-variants] [–csv-output CSV] 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:
ByteAlignmentCheckerCompressionCheckerExtentsCheckerKindCheckerMissingReferenceCheckerNormalMapTextureCheckerPrimEncapsulationCheckerStageMetadataCheckerTextureCheckerTypeCheckerSubdivisionSchemeCheckerManifoldCheckerIndexedPrimvarCheckerUnusedMeshTopologyCheckerZeroAreaFaceCheckerWeldCheckerValidateTopologyCheckerUnusedPrimvarCheckerLayerSpecCheckerUsdAsciiPerformanceCheckerDanglingOverPrimCheckerDefaultPrimCheckerMaterialOutOfScopeCheckerMaterialPathCheckerMaterialUsdPreviewSurfaceCheckerShaderImplementationSourceCheckerUsdDanglingMaterialBindingUsdMaterialBindingApiArticulationCheckerColliderCheckerPhysicsJointCheckerRigidBodyCheckerSkelBindingAPIAppliedCheckerUsdGeomSubsetCheckerUsdLuxSchemaChecker(default: []) - -D RULE, --disable-rule RULE, --disableRules RULE
- Rule to disable. Valid options include:
ByteAlignmentCheckerCompressionCheckerExtentsCheckerKindCheckerMissingReferenceCheckerNormalMapTextureCheckerPrimEncapsulationCheckerStageMetadataCheckerTextureCheckerTypeCheckerSubdivisionSchemeCheckerManifoldCheckerIndexedPrimvarCheckerUnusedMeshTopologyCheckerZeroAreaFaceCheckerWeldCheckerValidateTopologyCheckerUnusedPrimvarCheckerLayerSpecCheckerUsdAsciiPerformanceCheckerDanglingOverPrimCheckerDefaultPrimCheckerMaterialOutOfScopeCheckerMaterialPathCheckerMaterialUsdPreviewSurfaceCheckerShaderImplementationSourceCheckerUsdDanglingMaterialBindingUsdMaterialBindingApiArticulationCheckerColliderCheckerPhysicsJointCheckerRigidBodyCheckerSkelBindingAPIAppliedCheckerUsdGeomSubsetCheckerUsdLuxSchemaChecker(default: []) - -c CATEGORY, --category CATEGORY, --enable-category CATEGORY
- Category to select. Valid options include:
BasicGeometryLayerLayoutMaterialPhysicsOther(default: []) - --disable-category CATEGORY
- Category to disable. Valid options include:
BasicGeometryLayerLayoutMaterialPhysicsOther(default: []) - --requirement REQUIREMENT
- Requirement to add. Valid options include:
AA.001AA.002AA.OV.001HI.004JT.002JT.003JT.ART.002JT.ART.003JT.ART.004RB.003RB.005RB.006RB.009RB.COL.004UN.001UN.002VG.007VG.009VG.010VG.011VG.014VG.016VG.018VG.019VG.020VG.RTX.001VM.BIND.001VM.MDL.001VM.MDL.002VM.PS.001(default: []) - --capability CAPABILITY
- Capability to add. Valid options include:units@0.2.0 (default: [])
- -f, --fix, --no-fix
Whether to fix issues. (default: False)
- -p PREDICATE, --predicate PREDICATE
- Predicate to select. Valid options include:AnyHasRootLayerIsErrorIsFailureIsWarning (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 overthe 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)
See https://tinyurl.com/omni-asset-validator for more details.