Setting primvar interpolation to 'constant' or 'uniform'

   152   0   0
User Avatar
Member
2 posts
Joined: April 2024
Offline
Hello,

I'm trying to get a cryptomatte AOV for each instance in a copy to points scenario. I have an unique unchanging int 'id' attribute for each point which is a primvar with varying interpolation in Solaris. I already tried to use it to create a Cryptomatte AOV, and on the surface it looks like it's working, but when I try to read it in Nuke, it's wrong. From my limited understanding, It's not working because Karma expects a primvar that is with 'constant' or 'uniform' interpolation. I tried using a wrangle to change the interpolation with 'usd_setprimvarinterpolation(0, '/copytopoints1', 'id', 'uniform');', and judging from the scene graph details, it's working, but it breaks everything else that relies on this primvar(material randomizations, etc..). I'd appreciate the help if anyone knows something on the subject.

Petko Ganev
  • Quick Links