<?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: Create own toolbar with programming in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10892633#M4563</link>
    <description>The only problem I see in these pyhon "toolbars" is that they use a lot of space when docked and at the same time don't support user customization (drag-drop user macro etc..)</description>
    <pubDate>Thu, 20 Jan 2022 07:22:09 GMT</pubDate>
    <dc:creator>Serejah</dc:creator>
    <dc:date>2022-01-20T07:22:09Z</dc:date>
    <item>
      <title>Create own toolbar with programming</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10881096#M4554</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I created my own script using PySide2 and now I am writing another "program" in Python to create my own toolbar -&amp;gt; add my macroscripts to the toolbar and show it on the screen finally (like VRay does).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to use my macroscripts on so many computers that if I did so one by one manually, it would take too much time. I mean, I don't want to open 3ds max -&amp;gt; Customize -&amp;gt; Customize User Interface -&amp;gt; add new tool bar -&amp;gt; add my scripts there etc. for all computers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I came up with this solution in the end:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1-&amp;nbsp;add my own macroscripts to &lt;FONT color="#3366FF"&gt;..\Autodesk\3dsMax\2022 - 64bit\ENU\usermacros&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;2- open &lt;FONT color="#3366FF"&gt;..\Autodesk\3dsMax\2022 - 64bit\ENU\en-US\UI\Workspaces\usersave\Workspace1__usersave__.cuix&lt;/FONT&gt; file and add this code:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Window objectName="new_tool_bar" name="new_tool_bar" type="T" cType="1" toolbarRows="1"&amp;gt;
            &amp;lt;Items&amp;gt;
                &amp;lt;Item typeID="2" type="CTB_MACROBUTTON" width="52" height="0" controlID="0" macroTypeID="3" macroType="MB_TYPE_ACTION" actionTableID="647394" imageID="-1" imageName="" actionID="MacroScriptName`Category" tip="mymacroscript" label="mymacroscript" /&amp;gt;
            &amp;lt;/Items&amp;gt;
&amp;lt;/Window&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3- and when I start 3ds Max, my toolbar will be there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but this is absolutely not a good way of doing it for example: if 3ds max was already open and I close it, &lt;FONT color="#3366FF"&gt;Workspace1__usersave__.cuix&lt;/FONT&gt; would be overwritten, there are also a lot of language files etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to create my own toolbar automatically when my program is run by the user. When I open/restart 3ds max I want to see this without having to do anything manually. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unknown" style="width: 222px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1011604i988365263C7E98C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="unknown" alt="unknown" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what should I do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 22:31:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10881096#M4554</guid>
      <dc:creator>mustafapassahci</dc:creator>
      <dc:date>2022-01-14T22:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create own toolbar with programming</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10886753#M4555</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can suggest one method, see if this can work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After adding your toolbar and buttons (manually by drag and drop), save this&amp;nbsp; (overwrite the default cuix file).&lt;/P&gt;&lt;P&gt;Give this file along with your plugin or application to the users.&lt;/P&gt;&lt;P&gt;Create a small application, which will copy this file and paste to en-US\...... folder, after copying, the same application should start 3dsmax.exe (using shellexecute)&lt;/P&gt;&lt;P&gt;Insist your users to start from this small application exe instead of 3dsmax.exe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gopinath.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 05:49:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10886753#M4555</guid>
      <dc:creator>tagopinath</dc:creator>
      <dc:date>2022-01-18T05:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create own toolbar with programming</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10886879#M4556</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9598647"&gt;@mustafapassahci&lt;/a&gt;&amp;nbsp; написал (-а):&lt;P&gt;&lt;SPAN&gt;I want to create my own toolbar automatically when my program is run by the user. When I open/restart 3ds max I want to see this without having to do anything manually.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what should I do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You have no other options except to use c++ to make it programmatically. Example is available in sdk: &lt;STRONG&gt;maxsdk\howto\ui\cuitest\cuitest.cpp&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately none of the methods to make a toolbar aren't exposed to maxscript or .net. The only workaround I can think of is to emulate user actions i.e. &lt;EM&gt;open dialog, press a button, input a toolbar name, press ok. Then you can grab a toolbar using .net GetICustToolbar and add all needed macro&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 18 Jan 2022 07:19:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10886879#M4556</guid>
      <dc:creator>Serejah</dc:creator>
      <dc:date>2022-01-18T07:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create own toolbar with programming</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10888933#M4557</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Wouldn't doing this break the user's existing layout? I think this is not a safe way to doing this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 21:58:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10888933#M4557</guid>
      <dc:creator>mustafapassahci</dc:creator>
      <dc:date>2022-01-18T21:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create own toolbar with programming</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10888939#M4558</link>
      <description>&lt;P&gt;I am going to&amp;nbsp;take a look at the documentation, thank you but "d5 render" actually doing this with python (I can't see their codes because they &lt;SPAN&gt;encrypted (as expected)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 22:03:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10888939#M4558</guid>
      <dc:creator>mustafapassahci</dc:creator>
      <dc:date>2022-01-18T22:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create own toolbar with programming</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10889597#M4559</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9598647"&gt;@mustafapassahci&lt;/a&gt;&amp;nbsp; написал (-а):&lt;BR /&gt;&lt;P&gt;... actually doing this with python (I can't see their codes because they &lt;SPAN&gt;encrypted (as expected)&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;There's a python example for MaxPlus in the reference called &lt;STRONG&gt;demoPySideToolBarQWidget.py&lt;/STRONG&gt;, but since MaxPlus is deprecated I don't know if you could make something of it. Not really sure if it is a true toolbar that supports drag-drop user macro. Never messed up with python&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 06:17:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10889597#M4559</guid>
      <dc:creator>Serejah</dc:creator>
      <dc:date>2022-01-19T06:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create own toolbar with programming</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10891939#M4560</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9662356"&gt;@Serejah&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You have no other options except to use c++ to make it programmatically. Example is available in sdk: &lt;STRONG&gt;maxsdk\howto\ui\cuitest\cuitest.cpp&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't think this C++ method no longer works for MAX 2020+. I'm assuming the new Qt mechanics are being used for new versions.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 22:52:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10891939#M4560</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-01-19T22:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create own toolbar with programming</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10892066#M4561</link>
      <description>&lt;P&gt;Sorry, I am a little confused. Qt mechanics also uses C++ methods, isn't it? Or you meant, just those types of C++ methods no longer works?&lt;BR /&gt;And I am sure, I downloaded Max SDK 2022 then why those methods are still there even though no longer works, do you know?&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;if Max using Qt mechanics for 2020+, that mean I can create tool bar using PySide2, right?&lt;/P&gt;&lt;P&gt;+++ and after a little research, it seems I really can! there is &lt;A href="https://github.com/ADN-DevTech/3dsMax-Python-HowTos/blob/b86ef45ef4d8dff373bd1cbfe5c4d5b805687339/src/samples/PySide2/docking_widgets.py" target="_blank" rel="noopener"&gt;&lt;FONT color="#3366FF"&gt;an example&lt;/FONT&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so my next steps should be something like this I guess: I am gonna create a max script in startup folder&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;that runs my python script. And it will check my tool bar is exists or not, if not exists then I am going to create a new tool bar etc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure though.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 11:38:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10892066#M4561</guid>
      <dc:creator>mustafapassahci</dc:creator>
      <dc:date>2022-01-20T11:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create own toolbar with programming</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10892132#M4562</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9598647"&gt;@mustafapassahci&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;it seems I really can! there is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/ADN-DevTech/3dsMax-Python-HowTos/blob/b86ef45ef4d8dff373bd1cbfe5c4d5b805687339/src/samples/PySide2/docking_widgets.py" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;FONT color="#3366FF"&gt;an example&lt;/FONT&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is the right direction (IMHO). In the MAX 2020+ versions, the mechanics of "docking" has been changed from native WINAPI based to Qt.&lt;/P&gt;&lt;P&gt;Of course, both are in c++, but they are implemented differently.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 01:09:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10892132#M4562</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-01-20T01:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create own toolbar with programming</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10892633#M4563</link>
      <description>The only problem I see in these pyhon "toolbars" is that they use a lot of space when docked and at the same time don't support user customization (drag-drop user macro etc..)</description>
      <pubDate>Thu, 20 Jan 2022 07:22:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/create-own-toolbar-with-programming/m-p/10892633#M4563</guid>
      <dc:creator>Serejah</dc:creator>
      <dc:date>2022-01-20T07:22:09Z</dc:date>
    </item>
  </channel>
</rss>

