12-16-2022, 04:57 PM
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.
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.