houdini: publish usd requires "flatten all layers" in the ROP
Publishing a USD file from Houdini fails with the default ROP option "flatten implicit layers only". To publish you need to switch to "flatten all layers". I am not sure if this is intended or otherwise but in any case it should work by default, so maybe when creating the ROP you can set that option.
- op: 3.9.3 windows
- host: Houdini 18.5 and 19.0
[cuID:OP-3070]
Publishing USD works fine in Houdini currently - but only if the upstream code does not generate additional usd files to the one you're publishing. As such, flattening will work indeed but is often not recommended - or you'd need to layer break out anything you don't want included in your output USD or make sure you're not "saving other files" except for the output USD file.
It's definitely a limitation which in the easiest way could 'come by' the easiest by adding the Save all files to a specific directory Output Processor to the USD ROP node - so that any file that is not the explicit direct output file would come along with the publish as a 'resource'.
Other ways could be:
- implementing custom output processors
- or likely the best but most complicated would be detecting each individual file to be saved (outside of USD ROP's output processor so we can collect the data) and turn each output file into a separate publish instance/subset that references each other, etc.
or likely the best but most complicated would be detecting each individual file to be saved (outside of USD ROP's output processor so we can collect the data) and turn each output file into a separate publish instance/subset that references each other, etc.
Is it solved here?
https://github.com/ynput/ayon-core/pull/295
I believe in that PR separate layers with an explicit layer save path set will be detected and converted to instances of their own, yes.
So just for the clarity - this won't be solved in OP but in AYON. I'll close this issue here, reference is already created by GH on that PR.