PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
5.98k stars 1.18k forks source link

UsdUtils.ExtractExternalReferences converts <udim> to 1001 in 23.11 #3173

Open p0las opened 1 month ago

p0las commented 1 month ago

Description of Issue

The paths returned by UsdUtils.ExtractExternalReferences no longer contain <udim> tag in 23.11

23.02 → gorilla-tex_lookDev_texture_v0001_base_colour..exr 23.11 → gorilla-tex_lookDev_texture_v0001_base_colour.1001.exr

Steps to Reproduce

given the simple USD file as below:

#usda 1.0
(
    upAxis = "Y"
)

def Scope "mtl"
{
    def Material "material"
    {
        token outputs:surface.connect = </mtl/material/PBRShader.outputs:surface>

        def Shader "PBRShader"
        {
            uniform token info:id = "arnold:standard_surface"
            color3f inputs:base_color.connect = </mtl/material/diffuseTexture.outputs:rgb>
            token outputs:surface
        }

        def Shader "diffuseTexture"
        {
            uniform token info:id = "arnold:image"
            asset inputs:filename = @C:/CODE/pyCharm/pipeline/fin_unittest/TEST_PROJECT_0/_Temp/Creatures/gorilla-tex/lookDev/texture/texture/0001/gorilla-tex_lookDev_texture_v0001_base_colour.<UDIM>.exr@
            color3f outputs:rgb
        }
    }
}

execute UsdUtils.ExtractExternalReferences for it. in the 23.11 the path returned doesn't match what is stored in the file and is returned as 1001 udim. In the previous versions, the <udim> tag was preserved by the utility.

System Information (OS, Hardware)

windows 10, USD 23.11

Package Versions

Build Flags

jesschimein commented 1 month ago

Filed as internal issue #USD-9867