Move to Object Position


#1
> for g in selection do
> (
> 	
> 	g.pivot = [0, g.center.y, g.min.z]
> 	--g.pos = [0,0,0]
> 	)

I want to move a few objects to the zero point without disturbing their current position. Is there a master who can help with this. Thanks in advance.
I wrote a little code, but I was able to move objects as pivots.


#2

One possible solution, if I understand properly what you want to achieve:

(
	for o in objects do
	(
		pivotPos = o.pivot
		o.pos = [0,0,0]
		o.pivot = pivotPos
	)
)

#3

Thank you for your answer. I think I need to explain the problem better.