With Node's Transform Name Get Camera Name

Version : Maya 7.0

With (Camera) Node's Transform Name can i get camera Name to navigat through camera view. and may also get transform name with camera name.

       can any one point me in the right direction?

what do you want to do?

Yes use listRelatives

Actually I am showing a list of transform nodes and consider my node is a camera, when I select the camera node it should activate this method.

CODE
lookThroughModelPanel modelPanel4
//It will look through camera view.

But I have only transform name.

And I am not clear about, why is it

whats the problem with it?
The code line you given works properly with transform names.

If you need a shape : yes: use what joojaa said: listRelatives -s $transform tells you the according shape.

And now what is it you want to do? You want the active camera in modelPanel4 to change as you select a camera from the outliner? Nice Idea .. but is it that what you want?

Pardon me if I sound rude but i can hardly get what you are trying to achieve and what your actual problem is.

In UI List, I am showing all other nodes like Polygon shapes..etc. (All transform node to move, rotate, scale operations) and also camera.

In my UI List.
1. When I select any camera (I have to check selected node is a camera) then only my above code will work.
2. When I select other nodes like polygon...etc., it should only select and respond for my transform command.

let me try your code myself everybody. Thank you for kind reply.