Jul 19, 2017

VEX | Scaling Point In Packed Primitive





This VEX Code is a great! That way can make a arrangement scale in packed primitive. 



vector scale = fit01(rand(@ptnum), ch("min"), ch("max"));

matrix3 transform = primintrinsic(0, "transform", @primnum);

matrix scalem = maketransform(0, 0, {0,0,0}, {0,0,0}, scale, @P);

transform *= matrix3(scalem);
setprimintrinsic(0, "transform", @primnum, transform);


http://forums.odforce.net/topic/23353-scaling-packed-objects-with-vex/

No comments:

Post a Comment