Jump to content

Maintain pivot locations from Maya using Alembic

Recommended Posts

Alembic packed geometry has a pivot intrinsic which sits on the centroid of each primitive. Is there a way to transfer an object from Maya and maintain the pivots that were set there?


thank you

and I was wondering if there is a way to

Share this post

Link to post
Share on other sites

this might give you what you are after. Disclaimer: im reading packedfulltransform, not pivot. You can modify it if needed.

run over points

matrix m = primintrinsic(0,'packedfulltransform',@ptnum);
@orient = quaternion(matrix3(m));

//transform fix
matrix xform = primintrinsic(0, "packedfulltransform", @ptnum);
@P = {0,0,0};
@P *=xform;

//rotation in degrees
matrix matx = qconvert(@orient);
vector extracted = cracktransform(0, 0, 1, @P, matx);
v@rotation = extracted;

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now