Maya USD publish payload not getting written to right directory

We’re experimenting with maya usd and setting up the pipeline. We’re finding the payload file is either getting written to the wrong location, or not at all. This is causing all the usd files to read from a location that doesn’t exist.

This is a list of all the published usd files the project has created so far:

./assets/vehicle/airbusA380/PUBLISH/usd/usdAsset/v002/payload.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset_model/v001/usdAsset_model_v001.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset_model/v004/usdAsset_model_v004.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset_model/v002/usdAsset_model_v002.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset_model/v005/usdAsset_model_v005.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset_model/v003/usdAsset_model_v003.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset/v001/payload.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset/v001/usdAsset_v001.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset/v004/usdAsset_v004.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset/v002/usdAsset_v002.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset/v005/usdAsset_v005.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usdAsset/v003/usdAsset_v003.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usd_modelling_Main/v001/usd_modelling_Main_v001.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usd_modelling_Main/v004/usd_modelling_Main_v004.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usd_modelling_Main/v002/usd_modelling_Main_v002.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usd_modelling_Main/v005/usd_modelling_Main_v005.usd
./assets/vehicle/airbusA380/PUBLISH/3D/usd/usd_modelling_Main/v003/usd_modelling_Main_v003.usd

Note how the payload for v002 isn’t even in the correct directory and the payloads weren’t even created after that version. v001 is the only one that correctly published

Thanks @Liametc - I think I may know where this originates from.

It sounds similar to an issue @mustafa_jafar described here some time ago. I assume you have some custom templates set up for these product types (since it targets a 3D/ folder?

I haven’t had the time to look into it - and ‘fortunately enough’ it hadn’t come up in a production case yet so other stuff was prioritized… but it seems it may for you now?

I think the issue may be due to the logic here which always assumes it should go through the default publish path. Which is what I think we’re using to do some remapping ‘automatically’ before the publish step gets involved and moves the files.