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

Link to comment
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;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...