24#ifndef PXR_USD_USD_SHADE_UDIM_UTILS_H
25#define PXR_USD_USD_SHADE_UDIM_UTILS_H
29#include "pxr/usd/usdShade/api.h"
35PXR_NAMESPACE_OPEN_SCOPE
62 const std::string &identifierWithPattern,
63 const std::string &replacement);
72 const std::string &udimPath,
73 const SdfLayerHandle &layer);
81 const std::string &udimPath,
82 const SdfLayerHandle &layer);
85PXR_NAMESPACE_CLOSE_SCOPE
A scene description container that can combine with other such containers to form simple component as...
This class contains a set of utility functions used for working with Udim texture paths.
std::pair< std::string, std::string > ResolvedPathAndTile
Pair representing a resolved UDIM path.
static USDSHADE_API bool IsUdimIdentifier(const std::string &identifier)
Checks if identifier contains a UDIM token.
static USDSHADE_API std::string ReplaceUdimPattern(const std::string &identifierWithPattern, const std::string &replacement)
Replaces the UDIM pattern contained in identifierWithPattern with replacement.
static USDSHADE_API std::vector< ResolvedPathAndTile > ResolveUdimTilePaths(const std::string &udimPath, const SdfLayerHandle &layer)
Attempts to resolve all paths which match a path containing a UDIM pattern.
static USDSHADE_API std::string ResolveUdimPath(const std::string &udimPath, const SdfLayerHandle &layer)
Resolves a udimPath containing a UDIM token.