<?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: Mel Script not Running on 2016 .. OK on Maya2008-2015 in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-not-running-on-2016-ok-on-maya2008-2015/m-p/6403444#M13033</link>
    <description>Thanks I will try the quotes and see if that works.&lt;BR /&gt;&lt;BR /&gt;Yeah exact same files as previous&lt;BR /&gt;&lt;BR /&gt;Peter</description>
    <pubDate>Fri, 24 Jun 2016 21:55:53 GMT</pubDate>
    <dc:creator>p3taautod3sk</dc:creator>
    <dc:date>2016-06-24T21:55:53Z</dc:date>
    <item>
      <title>Mel Script not Running on 2016 .. OK on Maya2008-2015</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-not-running-on-2016-ok-on-maya2008-2015/m-p/6402582#M13031</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN&gt;I have an Old Mel Script that a grad student wrote back in 2009. It&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;has worked with every Maya version up to 2016. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;It is a sphere&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;packing script that allows you to put a ratio into a GUI that then&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;packs the mesh you have selected around a sphere of a given radius. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;(It looks up sphere packing ratios found in a directory that you tell&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the script to source) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;The GUI is loading correctly and it finds the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;directory and the correct ratio (in other words if I tell it pack&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;smaller spheres with radius .5 around a sphere of radius 1 it finds&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the correct ratio file in the directory of .5 etc) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;BUT it gives an&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;error.... &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Small Radius: .5 Big Radius: 1 Ratio: 0.5 best Guess:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;of 0.52573111194898 ratio.// Warning: file:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;/Users/peta/Desktop/spherePacking_Script.mel line 34: fopen: unable to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;open file "/Users/peta/Desktop/SPratios0.52573111194898.txt" for mode &lt;/SPAN&gt;&lt;SPAN&gt;"r". // &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;I went to line 34 in the script and it says..... &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;$packingFile = `fopen $packingFileName "r"`; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;I checked the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;permissions of the directory and the files inside it they are all -rwx&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for everyone. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;So I do not think it is a ownership issue. I am on a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Mac running El Cap with maya 2016 SP4 &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;I tried the same script on a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;PC running windows 10 and it is hanging on a different issue that I am&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;unsure how to solve just to test it on a PC to see if it is a Mac thing. &amp;nbsp;The Windows machine is Win 10 and has a space in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the User's name so teh mel script looks for C:\Users\Name&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Name\Desktop\SPratios and hangs on that line &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;I replace the space&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;with an _ but it did the same thing. So I can't test it on the PC &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Obviously mel is not my strong point Thanks for any help. The script&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;is a lifesaver on creating Micelles and Vesicles so any help would be&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;great. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Thanks Peter&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;I have attached the script and the appropriate directory that the script searches.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 15:00:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-not-running-on-2016-ok-on-maya2008-2015/m-p/6402582#M13031</guid>
      <dc:creator>p3taautod3sk</dc:creator>
      <dc:date>2016-06-24T15:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mel Script not Running on 2016 .. OK on Maya2008-2015</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-not-running-on-2016-ok-on-maya2008-2015/m-p/6403324#M13032</link>
      <description>&lt;P&gt;On Windows, the path needs quotation marks around it because of the space character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure about the Mac problem.&amp;nbsp; I know you said the script works on previous versions of Maya.&amp;nbsp; Were you using these same exact data files?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 20:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-not-running-on-2016-ok-on-maya2008-2015/m-p/6403324#M13032</guid>
      <dc:creator>RFlannery1</dc:creator>
      <dc:date>2016-06-24T20:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mel Script not Running on 2016 .. OK on Maya2008-2015</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-not-running-on-2016-ok-on-maya2008-2015/m-p/6403444#M13033</link>
      <description>Thanks I will try the quotes and see if that works.&lt;BR /&gt;&lt;BR /&gt;Yeah exact same files as previous&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Fri, 24 Jun 2016 21:55:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-not-running-on-2016-ok-on-maya2008-2015/m-p/6403444#M13033</guid>
      <dc:creator>p3taautod3sk</dc:creator>
      <dc:date>2016-06-24T21:55:53Z</dc:date>
    </item>
  </channel>
</rss>

