I created my own script using PySide2 and now I am writing another "program" in Python to create my own toolbar -> add my macroscripts to the toolbar and show it on the screen finally (like VRay does).
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 -> Customize -> Customize User Interface -> add new tool bar -> add my scripts there etc. for all computers.
I came up with this solution in the end:
1- add my own macroscripts to ..\Autodesk\3dsMax\2022 - 64bit\ENU\usermacros
2- open ..\Autodesk\3dsMax\2022 - 64bit\ENU\en-US\UI\Workspaces\usersave\Workspace1__usersave__.cuix file and add this code:
<Window objectName="new_tool_bar" name="new_tool_bar" type="T" cType="1" toolbarRows="1">
<Items>
<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" />
</Items>
</Window>
3- and when I start 3ds Max, my toolbar will be there.
but this is absolutely not a good way of doing it for example: if 3ds max was already open and I close it, Workspace1__usersave__.cuix would be overwritten, there are also a lot of language files etc.
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.
what should I do?
Solved! Go to Solution.