Adjusting radius by gizmo

Hello,

I am trying to adjust the radius of a some particles created with a a PRT volume. Basically I want the particles inside the gizmo to have a smaller radius . I create a this magma but it changes all the particles rather than just the ones on the inside.

Thanks

Sorry for the late answer, I totally missed your question!

Your problem is that you are converting the position inside the gizmo divided by the Radius (a value between 0.0 at the center and 1.0 at the radius) to an Integer, so the result is ALWAYS TRUE because it would be zero only when the particle is exactly at the Gizmo’s center, which is never the case.

You should change it to use a Less operator and set the second (comparison) value to 1.0, so that any particles whose calculated gradient value is LESS THAN 1.0 (inside the gizmo) will produce True, and any particles with a value Greater Than 1.0 will produce False.

Alternatively, you can pipe the Magnitude value into the first socket of the Less logical operator, and the Radius value into the second, so the test will be “if the distance from particle to center of gizmo is less than the radius of the gizmo, then use this value, else use that”…