07-16-2024, 06:14 PM
Hmm, you could try using a tyProperties modifier to achieve that result. Select each pair of matching meshes and assign a shared tyProperties modifier to them and then assign a unique property value to each pair (this process could be sped up with MAXScript). Then, assign targets by matching cluster value to have them link to their corresponding partner particle.
Attached is a scene file you can use to test this idea. Open it and then select each pair of objects, and after each time you select a pair, run this script:
You should see the pairs conjoin as you set their custom float overrides through the tyProperties modifiers.
Attached is a scene file you can use to test this idea. Open it and then select each pair of objects, and after each time you select a pair, run this script:
Code:
global matchInx
if (matchInx == undefined) then
(
matchInx = 0
)
max modify mode
m = undefined
for obj in selection do
(
if (m == undefined) then
(
m = typroperties()
)
addmodifier obj m
)
select selection
m.addnewlistitem()
m.customfloatvalue = matchInx
matchInx += 1
for obj in $*tyflow* do
(
try(obj.reset_simulation())catch()
)
You should see the pairs conjoin as you set their custom float overrides through the tyProperties modifiers.