Archived post by paqwak

Hello, so looks like packedbounds = bound of the packed geo before any transformation. So if I use copy to point with a scale/pscale attribute it doesn’t not get reflected on packedbound value :S … How do I extract the scale value (x y z) between the the rest (intrinsic.local.transform ?) and intrisic.packedfulltransform ? I’m so lost with those matrix stuff. I could copy/transfer the exising scale/pscale in my copy to point attrib transfer options, but I would like to have the system working just form the packed geo data.

…. mmm looks like the reply is “cracktransform” Oo

“`matrix3 test = primintrinsic(0,”transform”,@primnum); vector t,r,s;
cracktransform (0, 0, @P, test, t, r, s);
vector bound[] = primintrinsic(0, “packedbounds”, @primnum);
vector bboxMin = bound[0]; vector bboxMax = bound[1];
vector bboxDimensions = bboxMax – bboxMin;
float radius = length(max(bboxDimensions.x, bboxDimensions.y,bboxDimensions.z));
@pscale = radius*0.5*chf(“offset”)*max(s.x,s.y,s.z);“`

Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20233608/12/23/image.png