all  /  test_assets  / foundation  / stage_configuration  / metersPerUnit  / metersPerUnit_10 .usda

MetersPerUnit

These files show how the metersPerUnit stage metadata works.

MetersPerUnit = 1

metersPerUnit_1.usda

metersPerUnit = 1

screenshot metersPerUnit_1.usda, usdrecord 22.08

MetersPerUnit = 10

metersPerUnit_10.usda

metersPerUnit = 10

screenshot metersPerUnit_10.usda, usdrecord 22.08

MetersPerUnit mixed

metersPerUnit_mix.usda

This stage sets metersPerUnit = 100 and also sublayers metersPerUnit_1.usda and metersPerUnit_10.usda with different values.

USD does not auto-scale layers with divergent metersPerUnit. As a result, all three cubes in this file have the same size.

screenshot metersPerUnit_mix.usda, usdrecord 22.08


Edit this page

metersPerUnit_10.usda

#usda 1.0
(
    customLayerData = {
        string copyright = "Copyright 2022 Apple Inc. All rights reserved."
    }
    metersPerUnit = 10
    subLayers = [
        @../../../_common/axis.usda@
    ]
    upAxis = "Y"
    defaultPrim = "World"
)

def "World"
{
    def Cube "cube_10"
    {
    }
}