So, I have :
- an object composed with some variants
- a point cloud containing an “inst” attribute storing a specific variant name for each point.
I'd like to set a specific variant on my object on a specific point, according to that “inst” attribute. Also, I'd like keeping it procedural as much as possible.
This is what I've got for now :

I followed the example Matt Estela (and Mark Tucker) kindly provided in his extremely helpful website [www.tokeru.com] and could make it work for my first “wish”. So all good on that part.
The problem is that I use a stageManager node in order to rename manually my prims just before sending that to the instancer. But this is not a procedural way to tackle this. I mean… it works for that little example, but I'd like to make it work for something much bigger and complex…

In order to replace the stage manager, I was thinking of maybe having a python snippet that could get the variant name and rename the prims accordingly. But I'm not skilled enough to find my way in the USD documentation and do that myself… Also maybe there is a smart way of doing this with some lop nodes and magical expressions ?
So, if you have an idea, I'd love to hear it

Cheers