Reloading Sublayers of Loaded Layers

   1690   1   3
User Avatar
Member
9 posts
Joined: 12月 2020
Offline
Hello! I'm sure this is a combination of Houdini and USD, but I'm finding if I have a Sublayer LOP, and I hit the "Reload" button, only the layers specifically referenced in the parameters actually reload (not any sublayers of those layers).

I can imagine ways to implement a "deep" reload, but thought I'd ask what might be the best approach to it within Solaris?

Thanks!
--
Brian Silva
Lead Pipeline TD
Axis Studios
axisstudiosgroup.com
User Avatar
Member
9 posts
Joined: 4月 2016
Offline
Hey Brian - I believe Sublayer LOP should be doing a "deep reload" of the recursive layers used by the top level layer in the Sublayer LOP. If it's not, that might be a bug case to log.

If you want to reload a layer, recursively or not, in Python - the LOPs recommended way is hou.lop.reloadLayer() on https://www.sidefx.com/docs/houdini/hom/hou/lop.html. [www.sidefx.com] You can call either hou.lop.reloadLayer(<path>) hou.lop.reloadLayer(<path>, recursive=True), which will reload all used layers by that top level layer.

- Kenji
  • Quick Links