object cloning with offset to selection
This is a bit Maxscript 101, but I cant seem to get it to work. Let's say you have 5 boxes (copies or instances) in a selection, I am looking to create a new clone object (sphere) offset in the -z direction. I have been looking online and at the maxscript help but cant get it to work as I want.
This is what I have so far. Any help would be much appreciated!
for i in selection do
nl = sphere radius:3
newObj = maxOps.cloneNodes nl cloneType:#instance newNodes:i #nodialog
nl.pos = i.pos
nl.pos.z = nl.pos.z - 10