How to change usd paths downstream?

   1434   3   3
User Avatar
Member
11 posts
Joined: March 2018
Offline
Hi,

Coming back to this particular problem after a year away from Solaris. Is there a way to change reference paths downstream? Last time I checked Modify paths LOP could only be used for texture paths.

Let´s say I have a Stage Manager pulling in files:

/Users/Mike/Documents/Castle/turret.usd
/Users/Mike/Documents/Castle/drawbridge.usd
+100 other files from /Users/Mike/Documents/

And then I want to access the very same data but from a new location:
/Dropbox/USD/Castle/turret.usd
/Dropbox/USD/Castle/drawbridge.usd
etc

Is there a way in LOPS to replace this part in all paths:
/Users/Mike/Documents/
To
/Dropbox/USD/

?
User Avatar
Staff
4199 posts
Joined: Sept. 2007
Offline
This involves editing the USD files, since it's modifying the composition arcs. Modify Paths LOP is just overlaying attribute opinions.

In Houdini 20.0 we've added USD Modify Paths, that lets you edit the composition arcs on USD files, not just attributes.

https://www.sidefx.com/docs/houdini/nodes/top/usdmodifypaths.html
[www.sidefx.com]

Hope that helps!
I'm o.d.d.
User Avatar
Member
11 posts
Joined: March 2018
Offline
Ok, good to know will check out that TOP node then. Or resort to write out a usda and find and replace in text editor.

Thank you

Chris
User Avatar
Member
1 posts
Joined: Nov. 2023
Offline
Certainly! In the LOP network, use the "edit" node to modify USD paths downstream. Set up rules in the "Path Editing" parameter to replace "/Users/Mike/Documents/" with "/Dropbox/USD/". After cooking the network, the paths will be updated accordingly. Always ensure to work on copies for safety.
  • Quick Links