Tag Archives: shortcut

3DS Max – How to create Maxscript toolbar button?

My last 3DS Max post about CG Source Floor Generator script generated another question: How to create a toolbar button for any script?
Instead of mulltiple clicks: Maxscript–>Run Script–> and choosing .ms; mcr files from the folder it’s more convenient to create UI button to run specific script directly. And it’s easy!!!

  1. Open the script Maxscript–>Open,
  2. Highlight all of the code (Ctrl-A) then
  3. Click drag it to a UI bar you want it to appear on.

This procedure will make a generic button at that spot in the UI that will activate the highlighted code whenever you click on it. Right clicking on the button allows you to modify it’s appearance. You can choose any icon from a list of max toolbar icon or create your own icons.

script button

 


How to create your own max icon?

You need to create 24×24 pixel icon image and 16×15 pixel icon image (width x height) with a specific names as shown below and save them as Bitmap image (*.BMP)

It’s advisable to also create alpha channel images for these icons in the same size and format. White color for non transparent pixels.

[Icon’s Name] + _24i.bmp
[Icon’s Alpha Name] + _24a.bmp

[Icon’s Name] + _16i.bmp
[Icon’s Alpha Name] + _16a.bmp

New icon need to be copied to the folder specified in Additional Icons system path Customize–>Configure System Paths…

In Windows 7 it is:
C:\Users\user_name\AppData\Local\Autodesk\3dsMaxDesign\2013 – 64bit\ENU\usericons

CG FloorGenerator Icons – here you can download icons created by me for Floor Generator and Unique Material ID scripts.

And a video tutorial by Daniel Dye explaining how to create custom max icons:

And tutorial by


Buttons and Toolbar: TIPS

  • To create a copy of a button press, ctrl and drag the button that you want to copy. It will create a copy of the button. You can also copy buttons from one toolbar to another using the same trick. It will work only if option Lock UI Layout (ALT + 0) under Customize menu is turned off.
  • To delete a button, press ALT and drag the button you want to delete. It will work only if option Lock UI Layout (ALT + 0) under Customize menu is turned off.
  • To dock your toolbar, just right click on it then Dock and choose the desire dock type (Top, Bottom, Left or Right).
  • If you want to delete your toolbar, just go to Customize > Customize User Interface… Now under Toolbars tab, just select the toolbar that you want to delete and click on Delete… button.

AutoCAD – how to open a block in the Block Editor

Today a problem arose. I like to have a menu under a right-click of my mouse (with other useful commands) but my colleague get use to use Enter on that button. How then to open a block in the Block Editor she asked?

There is a command BEDIT ( BE or what ever is specified in the acad.pgp file) or a toolbar to open blocks in-place (or you can double click the block). But there is no toolbar icon to open a block in the Block Editor accept a right-click menu.

However there is a command which is not even listed in the acad.pgp file.
-BEDIT” opens selected block in the Block Editor. You can add that command to a acad.pgp command list with a shortcut e.g. “-BE“. It will work. Somehow AutoCAD 2013 is smarter and activates that command with a shortcut not even listed in the acad.pgp file.

Also in AutoCAD 2013 there is a predefined command with an icon in User Interface which can be easily added to any toolbar or tab.

-BEDIT in Autodesk Help

Have a good weekend everyone 🙂