material id
#1
Hi, friends, I have a box objects and the particle's birth from on it surface straight they have a Collision with four objects how I can receive the four different materials objects in the colliding time?https://icedrive.net/s/CZXZAYi69ZYivxX3SZjhTDZ71g3S
  Reply
#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: 89)
  Reply
#3
thanksusc001 I need it for another reason. I have two objects that they have rotation animation during the colliding time with other objects. They should receive the material. I hope to figure it out thanks again

https://icedrive.net/s/DzWTkthvgX8WTAPzZ81ba7WB24vRhttps://icedrive.net/s/DzWTkthvgX8WTAPzZ81ba7WB24vR
  Reply


Forum Jump: