Measurement Center of Object ?

   3694   3   1
User Avatar
Member
767 posts
Joined: 4月 2014
Offline
How can you find the measurements of the center of an object ?
【T】【C】【S】
User Avatar
Member
173 posts
Joined: 4月 2014
Offline
Attribute promote P to detail and use average?
User Avatar
Member
6 posts
Joined: 9月 2012
Offline
in HSCRIPT:
$CEX,$CEY,$CEZ
also the centroid() function, eg: centroid(opinputpath(“.”,0),D_X)

in VEX (attribute wrangle SOP)
// centroid of first input
vector bmin,bmax;
getbbox(0,bmin,bmax);
vector centroid = (bmin+bmax) * 0.5;
Julien D
User Avatar
Member
767 posts
Joined: 4月 2014
Offline
jdvfx
in HSCRIPT:
$CEX,$CEY,$CEZ
also the centroid() function, eg: centroid(opinputpath(“.”,0),D_X)

in VEX (attribute wrangle SOP)
// centroid of first input
vector bmin,bmax;
getbbox(0,bmin,bmax);
vector centroid = (bmin+bmax) * 0.5;

Correct me if I'm wrong but you run the following code in detail mode, I'm expecting to see a value ?
Also bmin and bmax are temp attributes correct, just to clarify ?
Edited by _Christopher_ - 2016年10月28日 12:31:09
【T】【C】【S】
  • Quick Links