Modify packedlocaltransform (prim intrinsic) ?

   389   1   0
User Avatar
Member
1227 posts
Joined: 4月 2017
Offline
Hi!

I'm using the wParallax osl shader to fake 3D rooms inside of buildings. When I import the building with an alembic sop and apply the shader, it all works. If I unpack, or even re-pack the building, the wParallax shader only looks good when my camera faces the world negative Z direction. in any other direction, It becomes mostly black.

I noticed the primitive intrinsic packedlocaltranform on the alembic sop has lots of different values. When I unpack and re-pack, all values are set to the default matrix values.

So, I wanted change those values to what they were before but it's greyed out (meaning I cant change it).

What to do?
Edited by olivierth - 2026年6月23日 10:15:07
-Olivier
User Avatar
Member
309 posts
Joined: 1月 2015
Offline
You can set it with vex using setprimintrinsic.

If you search setprimintrinsic in Google AI-mode, you get a example code of how it works.

You maybe need to do a inverse transform of the points first tough before the repack, or you get a double transform.

Probably a better way to do it. The inverse part can be annoying.
  • Quick Links