Swapping payload in LOP without saving stage first

   256   2   1
User Avatar
Member
3 posts
Joined: July 2017
Offline
Hi,

I've got assets imported in lop with sop import nodes. They're imported as payloads that I'd like to swap their paths before exporting them. When they're imported, usd scene graph have them as something like "op:<path/to/houdin/scene/OUT.sop>:SDF_FORMAT_ARGS:<payload/attribute/and/values/pairs>"

Using usd rop on this case, it is exporting all files in sop imports to a directory next to the exported usd file. I'm trying to avoi d creating those extra files and dirs since I thought I could swap payloads with actual file references. So far, I have tried playing with usd rop and naive usd api commands and haven't managed to export the usd without any extra files.

Any advice on how to do it would be appreciated.
User Avatar
Staff
4447 posts
Joined: July 2005
Offline
The SOP Import LOP has a "Save Path" parameter that lets you control where the USD file generated from the SOP imported geometry should be saved.
User Avatar
Member
33 posts
Joined: March 2017
Offline
You could try a switch pointing to a reference to the payload on disk. Then you can control the switch with a context option on the ROP.

Attachments:
switch_save_payload.jpg (131.4 KB)

  • Quick Links