Import string primvars into SOPs

   1953   2   0
User Avatar
Member
297 posts
Joined:
Online
Hopefully I'm missing something simple.

I'd like to create a bunch of points in a SOP network, tag them with string attributes and then import them into LOPs as transforms. I'd then like to use that string data later in a SOP Modify node to drive updated transforms. In my test I'm able to create the attributes that then come into USD as primvars, but when the USD is brought into a SOP network, the string attributes exist but are empty. Any float attributes seem to import correctly though.

Any idea why the string attrs don't work? See attached HIP.

Cheers,

Jon

Attachments:
missing_string_attr.hipnc (108.3 KB)

User Avatar
Member
297 posts
Joined:
Online
I still haven't figured out why the LOP import doesn't work, but can access the primvar value with a VEX workaround afterwards in a primitivewrangle:

string stage = "op:/stage/sopcreate1";
string test[] = usd_primvar(stage, s@path, "test");
string string_val = test[0];
Edited by jparker - 2020年11月1日 15:58:01
User Avatar
Member
297 posts
Joined:
Online
This was filed as a bug today (#109108) so I will assume that's what is going on!
  • Quick Links