What you are probably looking for is to create a scriptJob that fires your 
update function every time the selection changes: 
http://download.autodesk.com/us/maya/2010help/CommandsPython/scriptJob.html

They have both an event and a condition for this that are similar and they show 
the condition example in that doc link

jobid = cmds.scriptJob(ct=["SomethingSelected", updateMyPanel()])

...where updateMyPanel() is a callable you defined to check the current 
selection and update your panel. 

To get all that information, its a mixture of whatever commands you need for 
the object type. 



On Jun 7, 2012, at 7:40 AM, Matias Volonte <[email protected]> wrote:

> Hello everyone,
> 
> I would like to get scene data (size, number of vertexes, faces, or anything 
> else) and print it in a panel. I have a panel with textscrolllists and I want 
> to have that information when I select files, can anyone give me any tip to 
> follow, thanks.
> -- 
> 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