amin.khormaei 7 Posted September 13, 2020 (edited) hey guys , how can I calculate the volume of an object in VEX , I want to write something like this one below: the line of your script * volume of a specific object I used getbbox_size but the result is a scalar. I want everything in the object to have the effect. what should I do? best regards Edited September 13, 2020 by amin.khormaei Share this post Link to post Share on other sites
anim 1,262 Posted September 13, 2020 you can use Measure SOP to get volume of a polygonal geo per piece for example or for the whole detail as long as it's manifold, watertight and geometry normals point outside the volume value should be correct then you can use it in your wrangle Share this post Link to post Share on other sites
amin.khormaei 7 Posted September 13, 2020 thank you ' i'll try that Share this post Link to post Share on other sites
amin.khormaei 7 Posted September 13, 2020 how can I import an attribute to wrangle from it's second input? Share this post Link to post Share on other sites
amin.khormaei 7 Posted September 13, 2020 this is the file , I tried several things : detailintrinsic , primintrinsic , totalvolume but I couldn't solve that Vex.hip 1 Share this post Link to post Share on other sites
anim 1,262 Posted September 13, 2020 you can use detail() function for example detail(1, "totalvolume"); Share this post Link to post Share on other sites
amin.khormaei 7 Posted September 13, 2020 I tested that , it didn't work, could you modify my file and upload that? Share this post Link to post Share on other sites
amin.khormaei 7 Posted September 13, 2020 (edited) thank you so much, but you didn't get me. I want this effect (the wave) to occur inside the sphere, and outside the sphere nothing happens. the sphere act like an effector in cinema4D. Edited September 13, 2020 by amin.khormaei Share this post Link to post Share on other sites
anim 1,262 Posted September 13, 2020 oh, that was not clear at all, in that case you can use Distance From Geometry node for example, that will give you also some falloff Vex_fix2.hip 1 Share this post Link to post Share on other sites
amin.khormaei 7 Posted September 14, 2020 thank you Share this post Link to post Share on other sites