I'm in the early steps of learning python in maya and was curious why you are 
using pymel for this , rather than just maya.cmds.   
(it's the exact same in maya.cmds) 
-s

Sent from blackberry

On Jan 19, 2012, at 7:53 AM, Kamil Hepner <[email protected]> wrote:

> Try this:
> 
> import pymel.core as pm
> 
> # Get the panel
> pan = pm.getPanel(withFocus=True)
> 
> # Name
> print pm.windows.modelPanel(pan, query=True, camera=True)
> 
> 
> Should work.
> Cya!
> 
> 2012/1/10, deadparticle <[email protected]>:
>> i can hardly find infomation of this
>> 
>> --
>> view archives: http://groups.google.com/group/python_inside_maya
>> change your subscription settings:
>> http://groups.google.com/group/python_inside_maya/subscribe
>> 
> 
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to