<?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: Longer Script List, or Script Panel with Buttons in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10766110#M7513</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11498985"&gt;@tykapl.breuil&lt;/a&gt;&amp;nbsp; Thank You. I will work thru that and see if I can understand it, and how to add additional items to the list.&lt;/P&gt;&lt;P&gt;Appreciate you sharing the code.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Nov 2021 13:37:17 GMT</pubDate>
    <dc:creator>info83PHN</dc:creator>
    <dc:date>2021-11-18T13:37:17Z</dc:date>
    <item>
      <title>Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10763814#M7502</link>
      <description>&lt;P&gt;As I am learning the API and how it can help many tasks that I do in Fusion, I am finding the list growing longer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now have to scroll to find the Script that I want to run. I understand that we can't assign keyboard shortcuts to Scripts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there either : a way to increase the depth of the visible list, to reduce scrolling, or create a separate panel with button / shortcuts to regular used scripts ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would this be an add-in ?Can buttons on an addin be used to run a script ( different file to make code changes easier ? )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am thinking of a panel that can stay down the right side of my screen, with 2 or 3 columns of square buttons - maybe a text code or icon on each button, to indicate which script would be run when pressed ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything like this been done yet ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 15:59:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10763814#M7502</guid>
      <dc:creator>info83PHN</dc:creator>
      <dc:date>2021-11-17T15:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10763851#M7503</link>
      <description>&lt;P&gt;I know exactly what you're talking about because my list of scripts is _VERY_ long.&amp;nbsp; Unfortunately, there isn't anything currently exposed to make using them easier.&amp;nbsp; I know some things have been discussed but nothing has been done so far.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 16:09:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10763851#M7503</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2021-11-17T16:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10763899#M7504</link>
      <description>&lt;P&gt;Couldn't an addin contain buttons, with the Click event starting an import or include of a script file, and execute the script ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 16:23:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10763899#M7504</guid>
      <dc:creator>info83PHN</dc:creator>
      <dc:date>2021-11-17T16:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10764047#M7505</link>
      <description>&lt;P&gt;An add-in can certainly create buttons but it's not currently possible to execute a script through the API.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 17:03:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10764047#M7505</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2021-11-17T17:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10764059#M7506</link>
      <description>&lt;P&gt;so what's the purpose of an addin, if it can't execute a script ( or is that : can't execute a script from another file, but can execute script built in to the addin ) ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 17:06:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10764059#M7506</guid>
      <dc:creator>info83PHN</dc:creator>
      <dc:date>2021-11-17T17:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10765380#M7507</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6486599"&gt;@info83PHN&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;
&lt;P&gt;so what's the purpose of an addin&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think that you should read the documentation : &lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-9701BBA7-EC0E-4016-A9C8-964AA4838954" target="_blank" rel="noopener"&gt;Creating a Script or Add-In&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 06:55:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10765380#M7507</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2021-11-18T06:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10765757#M7508</link>
      <description>&lt;P&gt;You can import the run function of the script you want to run and then call script.run(context), that works really well !&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 10:37:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10765757#M7508</guid>
      <dc:creator>tykapl.breuil</dc:creator>
      <dc:date>2021-11-18T10:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10765791#M7509</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11498985"&gt;@tykapl.breuil&lt;/a&gt;would that be importing the script to an addin, and calling the Run on a button Click event ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 10:52:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10765791#M7509</guid>
      <dc:creator>info83PHN</dc:creator>
      <dc:date>2021-11-18T10:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10765811#M7510</link>
      <description>&lt;P&gt;Yes, what I did for my use was create the scripts as scripts then put them in a sub folder of my addin to call them, (that means they weren't in my script list anymore). But you can certainly import the run function of the script while it is still in the right folder.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 11:02:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10765811#M7510</guid>
      <dc:creator>tykapl.breuil</dc:creator>
      <dc:date>2021-11-18T11:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10765845#M7511</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11498985"&gt;@tykapl.breuil&lt;/a&gt;&amp;nbsp;&amp;nbsp; that sounds like what I am looking for. Any possibility of you sharing the addin code so I have a starting point ?&lt;/P&gt;&lt;P&gt;If you want to keep if off forum, I'm on fb : david.obrien.338&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 11:25:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10765845#M7511</guid>
      <dc:creator>info83PHN</dc:creator>
      <dc:date>2021-11-18T11:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10766015#M7512</link>
      <description>&lt;P&gt;Here's an example with a quick sample I threw together where the main file, "CodeSample.py" runs the script "test.py" that is in the same folder.&lt;/P&gt;&lt;P&gt;The script could be in the fusion script folder if you change the import a bit.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/1vAVGA14dus75kooKcX8i3pukf0T63PA4?usp=sharing" target="_blank"&gt;https://drive.google.com/drive/folders/1vAVGA14dus75kooKcX8i3pukf0T63PA4?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 12:51:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10766015#M7512</guid>
      <dc:creator>tykapl.breuil</dc:creator>
      <dc:date>2021-11-18T12:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10766110#M7513</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11498985"&gt;@tykapl.breuil&lt;/a&gt;&amp;nbsp; Thank You. I will work thru that and see if I can understand it, and how to add additional items to the list.&lt;/P&gt;&lt;P&gt;Appreciate you sharing the code.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 13:37:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10766110#M7513</guid>
      <dc:creator>info83PHN</dc:creator>
      <dc:date>2021-11-18T13:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10813574#M7514</link>
      <description>&lt;P&gt;I was curious about this problem and worked on it a bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My idea was to use the tree view and make it collapsible.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 405px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/999676iE779F2F7C9AB9CA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I actually worked on this as an add-in, but there were a few problems that stopped the development.&lt;BR /&gt;(If I'm honest, I've given up on it now.)&lt;BR /&gt;I've attached it if you're interested, but it's still under development and lacks a lot of stuff.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you launch the add-in, "Script Launcher" will be added to "Tools" - "ADD-INS".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 413px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/999677i5A58D6F6A3CD1D47/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you run it, the palette will be displayed.&lt;BR /&gt;Since it is currently under development, only the "Sample Scripts (Python)" included in the installation will be displayed in a tree, divided into several groups based on the alphabet.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 747px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/999678iC708ECFEA5B90F6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;By expanding the tree and double-clicking on each script name, you can execute the script.&lt;BR /&gt;However, only simple scripts can be executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, "Bottle" can be executed without any problem.&lt;/P&gt;
&lt;P&gt;If it is "Bolt", an error occurs. I haven't checked the cause in detail, but I think it's because I'm using the resources folder.&lt;/P&gt;
&lt;P&gt;The other problem is "ApplyAppearanceToSelection" which does not use the resources folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I press "OK" or "Cancel" to finish running the script, the add-in palette disappears.&lt;BR /&gt;And not only the palette, but also the add-in itself will be terminated.&lt;BR /&gt;If the add-in is terminated, there will be no benefit at all, so we have stopped development.&lt;/P&gt;
&lt;P&gt;I'm guessing it's because I'm importing the script as a module and running it.&lt;BR /&gt;I couldn't think of any other way to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope the standard "Scripts and Add-ins" dialog will add the ability to display them in a compact format.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 05:19:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/10813574#M7514</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2021-12-10T05:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Longer Script List, or Script Panel with Buttons</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/11520480#M7515</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3787950"&gt;@kandennti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize this is reviving an old thread, but just thought I should say that I tried your 'script manager' and it works pretty nicely, so thanks! I replaced the path to samples with the path to my script folder, and for the script I need to run, it works, the palette stays active, and I can re-run the script I want to use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's actually super useful for me at the moment, as what I need to do is write all assembly occurrence transform2 matrices in a motion study to text, using the motion study&amp;gt;edit (as motion study is still not exposed to API...).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As soon as you try run a script from the add-ins and script button, the Motion study palette disappears, but with your script manager it doesn't! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now I have a way to at least write out occurrence transform matrices frame by frame or interpolated if I'm feeling lazy, which I can then use to animate in other software.&amp;nbsp;Sure I could probably do the same with a rigged model in a different software, but I would need to learn that software, and probably buy it, so meh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 15:03:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/longer-script-list-or-script-panel-with-buttons/m-p/11520480#M7515</guid>
      <dc:creator>bryan_martin_morris</dc:creator>
      <dc:date>2022-10-31T15:03:20Z</dc:date>
    </item>
  </channel>
</rss>

