Unknown objects

I managed to get short internet acces… question…
How do I get acces to objects in python, a unknown number, one after one.
I mean I want to change the location of the selected objects with each a other random number.

Take a look at the doc for Object.Get() and Object.GetSelected().

yeah but how do I get acces to only one, then to the second, etc. everytime only at once

Hello.

Hope this helps.


import Blender

selObjs = Blender.Object.Get()
print selObjs

for obj in selObjs:
	print obj.getLocation()
	# Do Something on object's location

thx