7#ifndef PXR_USD_USD_SHADE_UDIM_UTILS_H
8#define PXR_USD_USD_SHADE_UDIM_UTILS_H
12#include "pxr/usd/usdShade/api.h"
18PXR_NAMESPACE_OPEN_SCOPE
45 const std::string &identifierWithPattern,
46 const std::string &replacement);
55 const std::string &udimPath,
56 const SdfLayerHandle &layer);
64 const std::string &udimPath,
65 const SdfLayerHandle &layer);
68PXR_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.