you're going to need to import maya.cmds alongside PyQt4 in your module. then you use cmds.file(q=1, sn=1)
On Aug 5, 2009, at 6:24 PM, Taylor Carrasco wrote: > With PyQt, I'm trying to discern which file Maya currently has open > in the script editor. I've looked through the documentation but > haven't turned up anything. > > For example, I open a file "/usr/sandbox/test.ma" > > I'd like to get that path. > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
