I have an alembic with many prims that need their position/ rotation animated at the SOP level. The original model has correctly oriented axis for all of its pieces and I know the alembic SOP sees this because the axis are all correct when "create primitives for" is set to "transform nodes only". Where I'm struggling with is actually accessing that data in a useful way to transform individual prims that have been split out downstream. Ideally I would think there would be a expression I could use in a Transform SOPs pivot transform PX PY PZ PRX PRY PRZ to get the transform of a object in the alembic using its path attribute.
Using just the spike as an example, there are many other hidden pieces that this needs to be applied to as well.
Thanks eikonoklastes! It didn't work initially but I tweaked your wrangle and got it working properly!
Yours was giving me weird pivot rotations:
Swapping out quaterniontoeuler() with quaternion() seemed to fix it. I have no idea if this is "proper" but it gave the correct results. orientation and transformation matrices are still kinda a mystery to me.
Also added the @pivot_translate detail using P, which has the correct values but may not be the best attrib to use for that, do you know if the translation is stored in another intrinsic attrib?
marcuskulik Thanks eikonoklastes! It didn't work initially but I tweaked your wrangle and got it working properly! Yours was giving me weird pivot rotations:
Try not normalizing the pivot, maybe that will sort it.
For the position, you can use the xyz values of the pivot itself. If you use P, it uses the centroid, which should be correct, but in case it's not, the pivot will sort it.