OpenPype icon indicating copy to clipboard operation
OpenPype copied to clipboard

houdini: publish usd requires "flatten all layers" in the ROP

Open pberto opened this issue 3 years ago • 1 comments

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]

pberto avatar Apr 08 '22 00:04 pberto

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.

BigRoy avatar Oct 31 '23 07:10 BigRoy

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

antirotor avatar Apr 09 '24 12:04 antirotor

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.

BigRoy avatar Apr 09 '24 12:04 BigRoy

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.

antirotor avatar Apr 09 '24 14:04 antirotor