material id
#2
You can use the "surface test" operator to send particles to the next event. Then in the next event you apply material IDs using the "Material ID" operator.
Test again with surface test for the next box and so forth.

If you want to keep everything inside 1 event, you can save the surface Test result to a custom float.
In the Test action rollout of surface test operator you can set "save test value when test true". So if a particle is inside the box it will switch to true.
You can set up multiple surface tests for each box and save their results to individual channels (i called them box01true, box02true etc.)
Then in the material ID operator you can filter which particles get the ID applied by testing your channel against 0 (in the filters rollout select "customfloat" and set the corresponding channel).

The scene is saved in max2022 i hope you can open.


Attached Files
.max   SurfaceTestMatID_01_01.max (Size: 1,004 KB / Downloads: 90)
  Reply


Messages In This Thread
material id - by raja - 12-16-2022, 04:08 PM
RE: material id - by usc001 - 12-16-2022, 04:57 PM
RE: material id - by raja - 12-17-2022, 03:19 PM

Forum Jump: