This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Snippet of Vex code that copies the transform of corresponding packed primitives from input 1 to input 0. | |
// Cracks open that transform and promotes parameters for individual transform components. | |
matrix m1 = primintrinsic(0,"packedfulltransform",@primnum); // Extract matrix | |
vector trans1 = cracktransform(0,0,0,v@P,m1); // crack open components | |
vector rot1 = cracktransform(0,0,1,v@P,m1); | |
vector scl1 = cracktransform(0,0,2,v@P,m1); | |
matrix m2 = primintrinsic(1,"packedfulltransform",@primnum); // Extract matrix | |
vector trans2 = cracktransform(0,0,0,v@P,m2); // crack open components |