VEX - uniquevals doesn't work for primintrinsic values?

   1482   2   1
User Avatar
Member
4 posts
Joined: June 2017
Offline
Hey all, I'm trying to grab an array of uniquevals for a prim intrinsic string attribute set of values from packed-alembic primitives.

If I have this in my primwrangle:

s@myattrib = primintrinsic(geoself(), "abctypename", @elemnum);
s[]@myarray = uniquevals(geoself(), "prim", "abctypename");

I am expecting to see an entry per primitive of the abctypename and an array of all the unique values - however whilst the primintrinsic attribute is read fine the array is not - it is empty.

I am using Houdini 18.0, and the documentation for ‘uniquevals’ reads:


attribute_name
The name of the attribute (or intrinsic) to read.

Any help appreciated,
Marb

Attachments:
toSideFx.png (19.3 KB)

User Avatar
Member
51 posts
Joined: June 2017
Offline
I know this is ages later, but I wanted to say that I was also just looking for a solution to this and couldn't for the life of me figure out how to make it work.
Houdini TD, I focus on tools for procedural asset creation.

www.jaworenko.design
User Avatar
Member
11 posts
Joined: Jan. 2011
Offline
It can be temporarily solved before SideFx fixes it, first copy the intrinsic attribute to prim, and then uniquevals it.:P
  • Quick Links