### MDL Material Override Example Source: https://docs.omniverse.nvidia.com/simready/latest/simready-asset-creation/material-best-practices.html This snippet illustrates how material settings like Albedo Map and Color Tint can be overridden in a USD file, taking precedence over the original MDL settings. Understanding this 'over' workflow is crucial for managing material consistency. ```usda def Material "MyMaterial" ( outputs = { "surface": "/World/Looks/MyMaterial.mdl" } ) { float "inputs:diffuse_albedo" = 0.90, 0.11, 0.11 color3f "inputs:base_color" = (0.90, 0.11, 0.11) customData = {} } ``` -------------------------------- ### Python BaseRuleChecker for SimReady Validation Source: https://docs.omniverse.nvidia.com/simready/latest/simready-faq.html This snippet demonstrates the use of a Python BaseRuleChecker for validating SimReady assets. It inspects USD prims, attributes, and APIs to ensure compliance with defined rules. ```python from simready.validation import BaseRuleChecker class CollisionRule(BaseRuleChecker): """Example rule: every rigid shape must carry a CollisionAPI.""" def __init__(self): super().__init__("RB.COL.001", "every rigid shape must carry a CollisionAPI") def check(self, prim): # Implementation to check for CollisionAPI on the prim pass class UpAxisRule(BaseRuleChecker): """Example rule: upAxis shall be Z.""" def __init__(self): super().__init__("UN.006", "upAxis shall be Z") def check(self, prim): # Implementation to check the upAxis attribute pass class MeshNormalsRule(BaseRuleChecker): """Example rule: meshes shall have normals.""" def __init__(self): super().__init__("VG.027", "meshes shall have normals") def check(self, prim): # Implementation to check for normals on mesh prims pass class ConditionalPropertyRule(BaseRuleChecker): """Example rule: if property A is set, property B must also be present and within a compatible range.""" def __init__(self): super().__init__("COND.001", "if property A is set, property B must also be present and within a compatible range") def check(self, prim): # Implementation for conditional property validation pass ```