Thanks Chad, I know I was doing it in completely wrong way, the reason being is that I didn't knew about these syntax:
PyNode('persp').attr('focalLength').get()
PyNode('persp').focalLength.get()
Attribute( 'persp.focalLength' ).get()
getAttr( 'persp.focalLength' )
Pymel ROCKS!!! Keep it up. ;-)
Prashant
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---
