ltmedic Posted September 2, 2015 Share Posted September 2, 2015 Hey guys I guess the title says it all but i'm unclear as to how to access an objects centroid within a VOP network. I'm wanting to use the centroid of the object to help create a custom velocity field to push velocity away from the centre of the object. Thanks Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted September 2, 2015 Share Posted September 2, 2015 You can use the bbox vop and then average the min and max with average vop, this will give you the centroid. However this calculation would be performed for every point/voxel/prim whatever the vop is set to run over. An alternative is to just make a vector parameter with the usual: centroid(opinputpath('.',0), 0) centroid(opinputpath('.',0), 1) centroid(opinputpath('.',0), 2) Either one should be fine. 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.