Measurement Center of Object ?

   3563   3   1
User Avatar
Member
766 posts
Joined: April 2014
Offline
How can you find the measurements of the center of an object ?
【T】【C】【S】
User Avatar
Member
173 posts
Joined: April 2014
Offline
Attribute promote P to detail and use average?
User Avatar
Member
6 posts
Joined: Sept. 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
766 posts
Joined: April 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_ - Oct. 28, 2016 12:31:09
【T】【C】【S】
  • Quick Links