<?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: Cannot Save Scripts in Script Editor and Shelf Editor in Maya Forum</title>
    <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844147#M14379</link>
    <description>&lt;P&gt;When you try to save your script does Maya lock up?&amp;nbsp; I have seen cases where the file dialog opens off screen and you can't see it, but in that case Maya would be completely locked.&amp;nbsp; Are there no errors at all in the script editor or Output Window?&amp;nbsp; If you turn on "Echo All Commands" in the script editor and then click the menu item what does it print out?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try calling this from the script editor to see if it works, this is what the menu would call for a mel tab:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;commandScrollFieldPromptForFile "Save Selected" "C:/Users/timfo/Documents/maya/2020/scripts/" 1 "mel";&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the shelves, if you hit the little gear icon on the left side of the shelves and choose "Save All Shelves" does it save it then?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also for the shelves, after hitting the "Save All Shelves" menu, go to your preferences folder and check if the file actually got saved.&amp;nbsp; You should see some .mel files under &amp;lt;Maya prefs&amp;gt;/prefs/shelves.&amp;nbsp; Open up the .mel file for the shelf you saved in a text editor (e.g. if you saved to the "Polygons" shelf then open up shelf_Polygons.mel).&amp;nbsp; Does it have the button you expected listed in there?&amp;nbsp; You should be able to figure out if it's there or not depending on what it's executing in the "-command" line.&amp;nbsp; I think the buttons get saved in the order they are in the UI, so if you added a button at the end then it should be listed last in the .mel file.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 00:56:12 GMT</pubDate>
    <dc:creator>fowlert</dc:creator>
    <dc:date>2020-11-04T00:56:12Z</dc:date>
    <item>
      <title>Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844028#M14376</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to Save script mels for certain controls for this rig I'm using to animate, but the window for saving it does not appear. Also, I can save the script command&amp;nbsp; mel to a shelf but when I close Maya then open it back up the mel disappears from the shelf. How can I fix this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 23:31:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844028#M14376</guid>
      <dc:creator>jpasionAG5FN</dc:creator>
      <dc:date>2020-11-03T23:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844079#M14377</link>
      <description>&lt;P&gt;When you say "&lt;SPAN&gt;the window for saving it does not appear" do you mean that you hit File -&amp;gt; Save Script in the Script Editor and the file dialog doesn't open to let you choose a file location?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And for saving the shelves, do you happen to have the option to save all preferences and settings on exit off?&amp;nbsp; That option is in the main prefs in the "Save Actions" section.&amp;nbsp; I know a lot of people get their preferences the way they like them and then they disable that option, but that does block automatically saving of edited shelves (along with any other pref's you might have changed).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 00:13:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844079#M14377</guid>
      <dc:creator>fowlert</dc:creator>
      <dc:date>2020-11-04T00:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844088#M14378</link>
      <description>&lt;P&gt;Yes,&amp;nbsp; the file dialog doesn't open to let me choose a file location in the script editor.&amp;nbsp; And no, I have the boxes checked in the "Save Actions" section of the prefs and they're on, not off. So I should have the boxes unchecked?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 00:22:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844088#M14378</guid>
      <dc:creator>jpasionAG5FN</dc:creator>
      <dc:date>2020-11-04T00:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844147#M14379</link>
      <description>&lt;P&gt;When you try to save your script does Maya lock up?&amp;nbsp; I have seen cases where the file dialog opens off screen and you can't see it, but in that case Maya would be completely locked.&amp;nbsp; Are there no errors at all in the script editor or Output Window?&amp;nbsp; If you turn on "Echo All Commands" in the script editor and then click the menu item what does it print out?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try calling this from the script editor to see if it works, this is what the menu would call for a mel tab:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;commandScrollFieldPromptForFile "Save Selected" "C:/Users/timfo/Documents/maya/2020/scripts/" 1 "mel";&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the shelves, if you hit the little gear icon on the left side of the shelves and choose "Save All Shelves" does it save it then?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also for the shelves, after hitting the "Save All Shelves" menu, go to your preferences folder and check if the file actually got saved.&amp;nbsp; You should see some .mel files under &amp;lt;Maya prefs&amp;gt;/prefs/shelves.&amp;nbsp; Open up the .mel file for the shelf you saved in a text editor (e.g. if you saved to the "Polygons" shelf then open up shelf_Polygons.mel).&amp;nbsp; Does it have the button you expected listed in there?&amp;nbsp; You should be able to figure out if it's there or not depending on what it's executing in the "-command" line.&amp;nbsp; I think the buttons get saved in the order they are in the UI, so if you added a button at the end then it should be listed last in the .mel file.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 00:56:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844147#M14379</guid>
      <dc:creator>fowlert</dc:creator>
      <dc:date>2020-11-04T00:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844413#M14380</link>
      <description>&lt;P&gt;Maya doesn't lock up when I try to save the script, the "Save As" box just doesn't show up. And there is also no errors that show up in the output window when I try to save scripts. When I enable "Echo all commands" and click on the shelf button I just made, it prints out this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Result: scriptEditorPanel1Window|scriptEditorPanel1|formLayout98|formLayout100|paneLayout4|cmdScrollFieldReporter1 //&lt;BR /&gt;select -r Bones_Rig:Head_CON ;&lt;BR /&gt;autoUpdateAttrEd;&lt;BR /&gt;updateAnimLayerEditor("AnimLayerTab");&lt;BR /&gt;statusLineUpdateInputField;&lt;BR /&gt;if (!`exists polyNormalSizeMenuUpdate`) {eval "source buildDisplayMenu";} polyNormalSizeMenuUpdate;&lt;BR /&gt;dR_updateCounter;&lt;BR /&gt;dR_updateCommandPanel;&lt;BR /&gt;autoUpdateAttrEd;&lt;BR /&gt;updateAnimLayerEditor("AnimLayerTab");&lt;BR /&gt;statusLineUpdateInputField;&lt;BR /&gt;if (!`exists polyNormalSizeMenuUpdate`) {eval "source buildDisplayMenu";} polyNormalSizeMenuUpdate;&lt;BR /&gt;dR_updateCounter;&lt;BR /&gt;dR_updateCommandPanel;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the shelves, yes, when I hit Save All Shelves, the shelves are saved in the prefs folder but the actual buttons/icons within them disappear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some screenshots here.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Before_Button.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/840168i61DFB5B2EA5750F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Before_Button.png" alt="Before_Button.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Printout.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/840170iA3A6CD97ED0BD70E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Printout.png" alt="Printout.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reopening_maya.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/840167i8FA562B9A91CE333/image-size/large?v=v2&amp;amp;px=999" role="button" title="reopening_maya.png" alt="reopening_maya.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 04:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9844413#M14380</guid>
      <dc:creator>jpasionAG5FN</dc:creator>
      <dc:date>2020-11-04T04:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9845162#M14381</link>
      <description>&lt;P&gt;Hmm...that is odd.&amp;nbsp; You have a Shelf named "Bones", so there should be a shelf_Bones.mel file in your prefs.&amp;nbsp; Can you paste that file here?&amp;nbsp; At this point I'm still only guessing, but I have heard of people that do not have write permission on certain files/folders.&amp;nbsp; That would be something else to confirm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question about turning on "Echo All Commands" was meant for the "Save Script" problem.&amp;nbsp; Try enabling that and hitting the File -&amp;gt; Save Script menu in the Script Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other thing to try that everyone is quick to suggest is to remove your pref's folder and start Maya back up, that can sometimes fix odd problems.&amp;nbsp; If you do that then I always ask people to zip up their pref's and let us look at them.&amp;nbsp; Sometimes there's an option turned on that you're not aware of and comparing the old and new pref's helps us figure out what was happening.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 13:06:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9845162#M14381</guid>
      <dc:creator>fowlert</dc:creator>
      <dc:date>2020-11-04T13:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9846373#M14382</link>
      <description>&lt;P&gt;Hi, I've tried all of that and it's still not letting me save scripts and saving them in the shelf. What is the right way to delete the prefs folder and how can I send you the prefs folder?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 21:31:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9846373#M14382</guid>
      <dc:creator>jpasionAG5FN</dc:creator>
      <dc:date>2020-11-04T21:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9846387#M14383</link>
      <description>&lt;P&gt;It's now saying "syntax error" at the bottom &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 21:38:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9846387#M14383</guid>
      <dc:creator>jpasionAG5FN</dc:creator>
      <dc:date>2020-11-04T21:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9846397#M14384</link>
      <description>&lt;P&gt;Looks like you're on Windows, so your pref's folder should be in your "My Documents" folder.&amp;nbsp; You should see a folder for each major version of Maya there, so for me for Maya 2020 I have:&amp;nbsp; C:\Users\timfo\Documents\maya\2020&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To send me the pref's you could zip up your entire "2020" folder and send that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To reset all of your pref's you would just delete the 2020 folder and start Maya back up, it will recreate it.&amp;nbsp; The only thing you have to watch for here is if you've put stuff in there you might want to save.&amp;nbsp; e.g. under maya/2020/scripts you might have some scripts you downloaded, or maybe there are other shelves you have under maya/2020/prefs/shelves.&amp;nbsp; Of course if you zip it all up first before deleting then you have that as a backup in case you did delete something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 21:43:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9846397#M14384</guid>
      <dc:creator>fowlert</dc:creator>
      <dc:date>2020-11-04T21:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9846418#M14385</link>
      <description>&lt;P&gt;Thank you, I have the 2020 folder attached below&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 21:57:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9846418#M14385</guid>
      <dc:creator>jpasionAG5FN</dc:creator>
      <dc:date>2020-11-04T21:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Save Scripts in Script Editor and Shelf Editor</title>
      <link>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9846463#M14386</link>
      <description>&lt;P&gt;And another thing, I just deleted the prefs folder and reopened maya and it's saving the scipt mel buttons to the shelf but still won't allow me to save to my hard drive/external hard drive even with the "Echo all commands" on&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 22:29:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/cannot-save-scripts-in-script-editor-and-shelf-editor/m-p/9846463#M14386</guid>
      <dc:creator>jpasionAG5FN</dc:creator>
      <dc:date>2020-11-04T22:29:42Z</dc:date>
    </item>
  </channel>
</rss>

