amin.khormaei Posted September 13, 2020 Share 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 Quote Link to comment Share on other sites More sharing options...
anim Posted September 13, 2020 Share 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 Quote Link to comment Share on other sites More sharing options...
amin.khormaei Posted September 13, 2020 Author Share Posted September 13, 2020 thank you ' i'll try that Quote Link to comment Share on other sites More sharing options...
amin.khormaei Posted September 13, 2020 Author Share Posted September 13, 2020 how can I import an attribute to wrangle from it's second input? Quote Link to comment Share on other sites More sharing options...
amin.khormaei Posted September 13, 2020 Author Share Posted September 13, 2020 this is the file , I tried several things : detailintrinsic , primintrinsic , totalvolume but I couldn't solve that Vex.hip 1 Quote Link to comment Share on other sites More sharing options...
anim Posted September 13, 2020 Share Posted September 13, 2020 you can use detail() function for example detail(1, "totalvolume"); Quote Link to comment Share on other sites More sharing options...
amin.khormaei Posted September 13, 2020 Author Share Posted September 13, 2020 I tested that , it didn't work, could you modify my file and upload that? Quote Link to comment Share on other sites More sharing options...
anim Posted September 13, 2020 Share Posted September 13, 2020 Vex_fix.hip 1 Quote Link to comment Share on other sites More sharing options...
amin.khormaei Posted September 13, 2020 Author Share 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 Quote Link to comment Share on other sites More sharing options...
anim Posted September 13, 2020 Share 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 Quote Link to comment Share on other sites More sharing options...
Librarian Posted September 14, 2020 Share Posted September 14, 2020 Thanx Quote Link to comment Share on other sites More sharing options...
amin.khormaei Posted September 14, 2020 Author Share Posted September 14, 2020 thank you 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.