Skip to content

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

@p0las

Description

@p0las

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.<UDIM>.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions