VFX-UsdAssetResolver icon indicating copy to clipboard operation
VFX-UsdAssetResolver copied to clipboard

Avoid <UDIM> in cachedresolver identifiers

Open dovanbel opened this issue 3 months ago • 0 comments

Hi,

This is not an issue about the Cached Resolver, just a word of caution related to Houdini

My custom identifiers look something like :

mycustomuri:template=usd_asset_layer&Asset=triboule&Step=shading&task_name=shd&sg_asset_type=Prop&extension=usd

I have custom code in PythonExpose.py to convert this to a filepath, so far no problem.

I stumbled on an issue when I tried to convert filepaths of textures using udim's to my identifier scheme.

I first encoded my texture identifier like this : mycustomuri:template=substancepainter_asset_texture_udim_publish&Asset=triboule&Step=texturing&task_name=tex&UDIM=<UDIM>&colorspace=ACEScg&sg_asset_type=Prop&texture_map=BaseColor&texture_set=DefaultMaterial&extension=exr

Notice the substring <UDIM> inside the identifier. This caused an issue inside Houdini. I saw Houdini trying to replace <UDIM> by numbers (1001 to 1100) in a loop. Meaning, Houdini was processing the identifier before the identifier was processed by my PythonExpose.py.

So, avoid <UDIM> in your identifiers :-)

Regards

dovanbel avatar Nov 11 '25 13:11 dovanbel