ah thanks! i'll give that a shot

On Wed, Aug 4, 2010 at 1:39 PM, Ian Jones <[email protected]> wrote:

> pymel.cmds.file(q=1, mf=1) should work.
>
>
> On Tue, Aug 3, 2010 at 9:46 AM, Jamie Macdougall <[email protected]>wrote:
>
>> Ok thanks. I was trying to avoid importing maya.cmds
>>
>>
>>
>> On Tue, Aug 3, 2010 at 1:17 AM, Ofer Koren <[email protected]> wrote:
>>
>>> I don't think pymel has any convenience function for this, so you have to
>>> go via maya.cmds:
>>>
>>> if maya.cmds.file(q=1, mf=1):
>>>     print "file is modified!"
>>>
>>>
>>>
>>> - Ofer
>>> www.mrbroken.com
>>>
>>>
>>> On Mon, Aug 2, 2010 at 3:14 PM, Jamie Macdougall <[email protected]>wrote:
>>>
>>>> I tried using
>>>> dgmodified() but this doesn't really represent if the scene needs
>>>> saving, since it returns true on an empty scene or a file that has been
>>>> loaded but not modified.
>>>>
>>>>
>>>> On Mon, Aug 2, 2010 at 1:29 PM, Jamie Macdougall 
>>>> <[email protected]>wrote:
>>>>
>>>>> I'm running around in circles trying to figure this out.
>>>>>
>>>>> I think mel uses
>>>>> file -q -amf
>>>>>
>>>>> but I'm using pymel.
>>>>>
>>>>> Thanks!
>>>>>
>>>>
>>>>  --
>>>> http://groups.google.com/group/python_inside_maya
>>>>
>>>
>>>  --
>>> http://groups.google.com/group/python_inside_maya
>>
>>
>>  --
>> http://groups.google.com/group/python_inside_maya
>>
>
>  --
> http://groups.google.com/group/python_inside_maya
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to