Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

check if modified command not working

1 REPLY 1
Reply
Message 1 of 2
Craig_Lamorte
463 Views, 1 Reply

check if modified command not working

Craig_Lamorte
Advocate
Advocate

Hi,

 

I am trying to use this command 

cmds.file(q=True, modified=True)

 

and no matter what it always returns true, no matter if I just opened the scene and did nothing to it, it still returns true.  Any idea how to solve this, I want it to return false if nothing has been edited in the scene.

 

Thanks

0 Likes

check if modified command not working

Hi,

 

I am trying to use this command 

cmds.file(q=True, modified=True)

 

and no matter what it always returns true, no matter if I just opened the scene and did nothing to it, it still returns true.  Any idea how to solve this, I want it to return false if nothing has been edited in the scene.

 

Thanks

1 REPLY 1
Message 2 of 2
mspeer
in reply to: Craig_Lamorte

mspeer
Consultant
Consultant

Hi!

 

This is a bug in current Maya versions and needs to be fixed by the developers, there is no other solution.

(As a workaround you could try to set the modified state to "False" right after opening the scene.)

0 Likes

Hi!

 

This is a bug in current Maya versions and needs to be fixed by the developers, there is no other solution.

(As a workaround you could try to set the modified state to "False" right after opening the scene.)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report