Grabbing USD metadata in an expression?

   1005   0   0
User Avatar
Member
8 posts
Joined: May 2018
Offline
Is there an expression I can use to grab the variant selection in an expression for output path?

I know I can use usd_variantselection() in a vex wrangle and the result shows up on the prim. I'm not sure how to grab that in an expression either.

Currently I'm using this in a wrangle:
string selected_shot = usd_variantselection(0, "/Scene", "Shot");
s@productName = "$HIP/render/$HIPNAME/CryptoMatte."+selected_shot+".$F4.exr";

Just wondering if I can skip the wrangle and keep everything in the ROP.
  • Quick Links