PosOffset = 5

for i=1 to selection.count do
(
	obj = selection[i]
	
	-- Position
	addnewkey obj.controller[1][3] ((i-1)*PosOffset)
	addnewkey obj.controller[1][3] (i*5)
	obj.controller[1][3].keys[1].value = 1000
	obj.controller[1][3].keys[2].value = 0
	
	-- Rotation
	addnewkey obj.controller[2][1] ((i-1)*5)
	addnewkey obj.controller[2][1] (i*5)
	obj.controller[2][1].keys[1].value = 90
	obj.controller[2][1].keys[2].value = 0
)
