PDA

View Full Version : newb copy groups


ronin71
08-12-2004, 08:21 AM
Hi,

I am trying to make 100 copies of a group '$Group01' and move each to: new_X, new_Y, new_Z and apply new rotation: new_rot_X, new_rot_Y, new_rot_Z

this copies the group '$Group01':

maxops.cloneNodes $Group01

now I am stuck on how to move each new group to a location: new_X, new_Y, new_Z and apply new rotation: new_rot_X, new_rot_Y, new_rot_Z

any ideas?

lechoo
08-12-2004, 09:32 AM
Hi,
you need array for new nodes (nNodes). Try this:

nNodes = #()
maxops.cloneNodes $Group01 newNodes:&nNodes
nNodes[1].pos = [newX,newY,newZ]
rotate nNodes[1] (eulerangles rotX rotY rotZ)

CGTalk Moderation
01-18-2006, 10:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.