Какнибуть так:
local savePaths = #()
on btnSavePaths pressed do
(
savePaths = for i in ($selection as array) where (isValidNode i ) and
superclassof $ == shape colllect i
)
on btnObj picked obj do
(
btnObj.Caption=obj.name
)
on ckbPlay changed state do
(
local f = btnObj.selectedFaces
local mc = amin (savePaths.count) (f.count)
for i = 1 to mc do
f
.pos.controller = Path pathsavePaths)
)