I've used this for a looong time:

import maya.cmds as mc
modelPanel = mc.playblast(activeEditor=True)

That's it:  The playblast command always knows the last active panel it 
could use, so querying that has always worked for me.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/4f718022-a3b4-4ea0-903d-384c06e04209%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to