<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue - Opening a scene with Python, unsaved changes in Maya Forum</title>
    <link>https://forums.autodesk.com/t5/maya-forum/issue-opening-a-scene-with-python-unsaved-changes/m-p/10389275#M72404</link>
    <description>&lt;P&gt;this will do the trick (untested)&lt;/P&gt;&lt;PRE&gt;cmds.file(file_path, open=True, force=True) &lt;/PRE&gt;&lt;P&gt;or in pymel&amp;nbsp;(tested)&lt;/P&gt;&lt;PRE&gt;pm.openFile(scene_path, force=True) &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;when i create a new scene in maya, maya sees the scene as changed despite me not touching it.&lt;BR /&gt;you can see this if a * appears in the window title&amp;nbsp;&lt;BR /&gt;the command you run creates a new scene so i would assume the same happening there&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cmds.file(new=True, force=True)&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;i did notice i had a security issue which might be the cause of this,&lt;BR /&gt;so make sure the maya security tools plugin is installed.&amp;nbsp;&lt;BR /&gt;it can be found here&amp;nbsp;&lt;A href="https://apps.autodesk.com/MAYA/en/Detail/Index?id=8637238041954239715&amp;amp;appLang=en&amp;amp;os=Linux" target="_self"&gt;https://apps.autodesk.com/MAYA/en/Detail/Index?id=8637238041954239715&amp;amp;appLang=en&amp;amp;os=Linux&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 17:02:55 GMT</pubDate>
    <dc:creator>hannesdelbeke</dc:creator>
    <dc:date>2021-06-14T17:02:55Z</dc:date>
  </channel>
</rss>

