matrix getpackedtransform(int input, int primnum)
Gets the transform of a packed primitive. This is constructed from the P
attribute of the primitive’s point and its intrinsic transform
.
Examples
// matrix to transform by matrix transform = ident(); rotate(transform, radians(45), {0,1,0}); translate(transform, {0,1,0}); matrix transform = getpackedtransform(0, @primnum); setpackedtransform(0, @primnum, transform * tf);
See also | |
transform |