Rename prim paths possible in LOPS?

   7294   3   3
User Avatar
Member
47 posts
Joined: Feb. 2020
Offline
Hello,

Is it possible to rename prim paths on a referenced USDA file in LOPS?

What we're trying to do is to layer a USD hierarchy on top of another, however the naming in each hierarchy is slightly different.
We're hoping to be able to do this in somewhat of a procedural way, as we have a lot of files, with basic name changes such as:
rockA, rockB, rockC.

If you see the attached image, we're trying to reuse a part of the A hierarchy and overlay it over B, by renaming the A paths to B.

Is this possible? Or is there another way to achieve this result?



Thanks for your time!
Klaus

Attachments:
Screenshot 2021-09-20 195945.jpg (42.8 KB)

User Avatar
Member
918 posts
Joined: March 2014
Offline
Hi there,

I was struggling with this the other day, too. I'm all new to LOPs so without better knowing I used a stage manager node. I'm also interested in a more procedural way.


Good luck.
User Avatar
Member
8177 posts
Joined: Sept. 2011
Offline
kskovbo
What we're trying to do is to layer a USD hierarchy on top of another, however the naming in each hierarchy is slightly different.
We're hoping to be able to do this in somewhat of a procedural way, as we have a lot of files, with basic name changes such as:
rockA, rockB, rockC.

If you see the attached image, we're trying to reuse a part of the A hierarchy and overlay it over B, by renaming the A paths to B.

Is this possible? Or is there another way to achieve this result?

It's not possible without flattening the stage and using SDF Copy Spec (stage manger does this.) It's best to build the correct hierarchy to begin with.
User Avatar
Member
67 posts
Joined: May 2019
Offline
@kskovbo I think you're looking for Restructure Scene Graph LOP [www.sidefx.com].

For example, this:




Becomes this:




Restructure Scene Graph LOP has a few other options:


Edited by AnimGraphLab - May 14, 2023 04:51:58

Attachments:
reference-lop.png (805.2 KB)
restructure-schene-lop.png (836.7 KB)
restructure-schene-lop-operations.png (118.0 KB)

Generalist. Transforming still images to 3D animation 🔮
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
  • Quick Links