[Solved] How can I properly add my 3ds Max script to a toolbar with a custom icon?


#1

Hello World ! I need your help !

I have created a 3dsmax script with Maxscript and Python languages.

My script work fine. Now I would like to add this script to a toolbar with a custom icon that I have designed with Affinity Designer.

I’ve tried to use this code in my *.ms file :

macroScript run_pfc
    category:"Project Folder Creator"
    toolTip:"PFC" -- I don't understand this line
    icon: #("pfc-toolbar-icon",1) -- I don't understand this line

I’ve also copied my icon as a *.bmp file in this directory : C:\Program Files\Autodesk\3ds Max 2020\UI_ln\Icons but I couldn’t find it in 3dsMax…

Currently I’ve created a custom toolbar with Customize User Interface Window.

So my questions are :

  • Where should I place my *.ms and *.py files in 3ds Max folders ?
  • How can I properly add my script in my toolbar ?
  • How can I add my custom icon ?

Can you help me please ? Thanks a lot ! :slight_smile:


[Solved] How can I add my script to a toolbar with a custom icon in 3dsMax?
#2

Here the solution !!