Replace object using array
Hi all, i try to make a script for replace object list in an array.
here is my code:
for obj in Cursel do
(
i = ReplacerObjectsSet.count
if i !=0 do
(
maxops.clonenodes Cursel newNodes:&objClones cloneType:#instance
objClone = objClones[1]
objClone.pos = ReplacerObjectsSet[(i)].pos
in coordsys local objClone.scale = ReplacerObjectsSet[(i)].scale
in coordsys local objClone.rotation = ReplacerObjectsSet[(i)].rotation
append ReplacedObjectsSet objClone
i+1
)
)
Probleme is with scale and rotation which are not apply but i don't understand why.
Help is welcome !
Comments
Assuming curSel contains the objects you want to distribute and replacerObjectsSet contains the objects you want to align to:
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters