Target primitive rule

   1362   1   1
User Avatar
Member
1013 posts
Joined: 4月 2008
オフライン
I am trying to organize a usd where all primitives containers are xforms so I can easily change them with configure primitive LOP using expressions.
Taking in consideration this tree:

/House
-/Door
--/Door Nob 1
---/mesh_0
--/Door Nob 2
---/mesh_0
-/Bed
--/Mattress
---/mesh_0

How can I target primitives that only has one descendant or the ones that contains the mesh through expressions?
I know that I have the "Descendant" number for each primitive, can I use that to target my selections? If so how?

I hope my graph makes sense.

Thanks.
Edited by mzigaib - 2022年5月31日 14:18:20

Attachments:
31.05.2022_15.14.46_REC_edited.png (82.2 KB)

https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
1013 posts
Joined: 4月 2008
オフライン
I figured it out!

Just in case someone needs it.

Just type that on the pattern match and boom:
%parents(%type:Mesh)
https://vimeo.com/user2163076 [vimeo.com]
  • Quick Links