добрый день
реально доделать вот этот маленький скрипт?
http://www.scriptspot.com/3ds-max/scripts/shuffle
автор делал и бросил видимо (не осилил вторую опцию)
машинки на паркинге местами меняются, но параметр rotation остается старый... т.е. пока работает только для параллельных полос парковки
спасибо
оригинал скрипта
реально доделать вот этот маленький скрипт?
http://www.scriptspot.com/3ds-max/scripts/shuffle
автор делал и бросил видимо (не осилил вторую опцию)
машинки на паркинге местами меняются, но параметр rotation остается старый... т.е. пока работает только для параллельных полос парковки
спасибо
оригинал скрипта
/*
shuffle
randomly swaps the position of a selection of objects (like parking lot cars)
*/
plist = for i in 1 to selection.count collect selection.pos
--rlist = for i in 1 to selection.count collect selection.rotation
for i in selection do
(
local theidx = (random 1 plist.count)
i.pos = plist[theidx]
--i.rotation = rlist[theidx]
deleteitem plist theidx
--deleteitem rlist theidx
)
shuffle
randomly swaps the position of a selection of objects (like parking lot cars)
*/
plist = for i in 1 to selection.count collect selection.pos
--rlist = for i in 1 to selection.count collect selection.rotation
for i in selection do
(
local theidx = (random 1 plist.count)
i.pos = plist[theidx]
--i.rotation = rlist[theidx]
deleteitem plist theidx
--deleteitem rlist theidx
)