Community
3ds Max Forum
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Howto assign a macroscript to a toolbar button?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
3dEJ3LK
117 Views, 2 Replies

Howto assign a macroscript to a toolbar button?

Hi all

I created an .ms file wich selects a bunch of objects.

I would like to assign it to a button so I could select this bunch of objects with just 1 clic.

 

How to do that?

 

Where to save the .ms file?

How to create a button?

How to assign the macrscript to the button please?

2 REPLIES 2
Message 2 of 3
miauuuu
in reply to: 3dEJ3LK

Add this to your file:

 

macroscript myScriptName
category:"My Category"
tooltip:"Select bunch of objects"
buttonText:"Select"
(
-- your code goes here

)

Then, save it as .mcr and drag and drop it onto any 3ds Max viewport.

Go to "Customize - Customize User Interface", Pick Toolbars, and find the "My Category" category. Your script is there. Drag and drop it onto any toolbar and you will have your button. Then you can add an icon to it.

 

https://miauu-maxscript.com/
Message 3 of 3
3dEJ3LK
in reply to: 3dEJ3LK

Thanks, works great !

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report