Return object parameters from its name

I need a Python script to rotate an object which I only know its name (I named it). How would I go about rotating it ? I would need to find its id from its name (is it possible?), center of rotation and angle. The object is a vray dome light so it only rotates about the z axis. Any ideas?

can’t you just use _selName and then rotate?

Hi Jonish, yes you are right, I could do that to select it but i still need to assign a rotation center and it’s current angle. The idea is to rotate it to end up at a certain angle regardless of its current rotation so I need to extract its current angle to calculate the final one.