<?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 Macroscript installation as button in Max2022 - how? in 3ds Max Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-forum/macroscript-installation-as-button-in-max2022-how/m-p/10731266#M14602</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having troube installing a Macroscript in Max2022.&lt;/P&gt;&lt;P&gt;I was used dragging it just in the toolbar from the script listener, but nothing happens.&lt;/P&gt;&lt;P&gt;Also the toolbar often doesn't show anything at first time, seems to be a bit buggy. I have created an own field (as always) to place own scripts and buttons&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I install a Macroscript?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for Help&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 21:29:05 GMT</pubDate>
    <dc:creator>BenediZ</dc:creator>
    <dc:date>2021-11-02T21:29:05Z</dc:date>
    <item>
      <title>Macroscript installation as button in Max2022 - how?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/macroscript-installation-as-button-in-max2022-how/m-p/10731266#M14602</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having troube installing a Macroscript in Max2022.&lt;/P&gt;&lt;P&gt;I was used dragging it just in the toolbar from the script listener, but nothing happens.&lt;/P&gt;&lt;P&gt;Also the toolbar often doesn't show anything at first time, seems to be a bit buggy. I have created an own field (as always) to place own scripts and buttons&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I install a Macroscript?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for Help&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 21:29:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/macroscript-installation-as-button-in-max2022-how/m-p/10731266#M14602</guid>
      <dc:creator>BenediZ</dc:creator>
      <dc:date>2021-11-02T21:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macroscript installation as button in Max2022 - how?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/macroscript-installation-as-button-in-max2022-how/m-p/10731616#M14603</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3909749"&gt;@BenediZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you literally mean you are dragging a macroscript (an .mcr)&amp;nbsp; from the listener or the editor&amp;nbsp; to a custom toolbar, then that will not work.&amp;nbsp; But if you drag an &lt;STRONG&gt;.ms&lt;/STRONG&gt; file text, then Max will create a button on the toolbar and make it into a macroscript.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The macroscript is just a wrapper for the .ms&amp;nbsp; which is where the actual code is.&amp;nbsp; See image below which I hope clarifies this for you.&amp;nbsp; Just drag the .ms part of the file that is within the maxscript wrapper and you will get your button on the toolbar.&amp;nbsp; Max will add the wrapper lines that declare it as a macroscript for you.&amp;nbsp; If you right click on your newly created button and select "Edit macroscript", then you will see the added lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Macroscript Installation.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/985004i14F5287F27EF968A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Macroscript Installation.png" alt="Macroscript Installation.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 04:50:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/macroscript-installation-as-button-in-max2022-how/m-p/10731616#M14603</guid>
      <dc:creator>10DSpace</dc:creator>
      <dc:date>2021-11-03T04:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Macroscript installation as button in Max2022 - how?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/macroscript-installation-as-button-in-max2022-how/m-p/10731756#M14604</link>
      <description>&lt;P&gt;For completeness, I should also mention 2 ways to install a macroscipt (.mcr) in max.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Place the .mcr file in the macroscripts folder which is typically:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Users\[Username]\AppData\Local\Autodesk\3dsmax\2021- 64bit\ENU\usermacros&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the next time you start Max, you will see it by name in the list of commands in the customize User interface dialogue.&amp;nbsp; &amp;nbsp;In the example I gave above, the command would appear as "Add_Human_Size_Reference" under the category "DragAndDrop".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. More simply, you can just drag the .mcr file (not just the text, but the file itself) into a viewport in max and max will install it in the above macroscript directory.&amp;nbsp; &amp;nbsp;You won't see anything happen, but it will be available right away (you don't have to restart max like you would in method 1 above) to be selected from the Customize User Interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just one tip:&amp;nbsp; Sometimes the name of the .mcr file itself does not exactly match the name given in the &lt;STRONG&gt;Macroscript&lt;/STRONG&gt; header of the file, so it is best to first open the .mcr file in notepad to see how it's name will appear in the list of commands in the Customize User Interface dialogue.&amp;nbsp; Obviously you have the text of the entire macro in the current situation, but if in the future you get 3rd party .mcr files from somewhere, I thought I would mention it as I have encountered this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 04:46:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/macroscript-installation-as-button-in-max2022-how/m-p/10731756#M14604</guid>
      <dc:creator>10DSpace</dc:creator>
      <dc:date>2021-11-03T04:46:21Z</dc:date>
    </item>
  </channel>
</rss>

