We are going to create a whole new toolbar and create a button specifically for our newly created Macro. So go ahead and open up the Toolbar Dialog Box.
Begin to create our own customizable toolbar.
Change any of the settings to your desire (I don’t like to differ too far from default settings.)
You should immediately see a new toolbar pop up with a blank area for a button. When you created your toolbar Rhinoceros added at least one button by default but you’ll add buttons to toolbars in this toolbar layout as shown.
So we’ve got a blank button and a new toolbar. How do we attach our macro to the button? Simple, you can Move, Delete or Edit any button my simply holding down the Shift key while hovering over the button. Left clicking will edit the button and Right clicking will let you Move/Delete the button.
Before we edit our button we need to copy all of our Macro Text!
Now we can Shift+Left click on our new button to edit all of the options for our button!
As you can see I already placed our copied macro into the Left Mouse Button Command area. This means with a left click on the button, it will run through the commands which you specify in this box (our macro.)
You’ll notice a few of the other options I have already filled in.
Tooltips – Left: This text will be displayed when the mouse is hovered over the button long enough. Consider this a hint/reminder of what you told this button to do when clicked with the specific mouse click.
Button Text: This text can be a replacement or combined with an icon for the button itself. Creating Icons for buttons are whole different tutorial so we won’t go into this at the moment. We’ll have our button just display the text as I’ve checked the bubble next to “Show Text Only.”
At this point it wouldn’t hurt to click OK and commit your changes to the button. To verify it applied, you should now be able to see the text you input for the button in our toolbar.
Excited to try out the new button!? You can go ahead and left click your button but you may not see any changes to your viewport… This is only because we already ran our macro while we were creating it!
Brings up a good point… We should probably create a macro that returns our viewports back to how we had them, no?
I knew you’d agree 😉
I’ve attached the macro that I created to turn the viewports back to the settings I prefer, but I encourage you to try and write this macro by yourself. What’s the worst that could happen right?!
Edit your button again and paste your “undo” macro into the Right Mouse Button Command.
Your new button is now ready to use!
Left click to turn your viewports into a nifty gradated view of your model and simply Right click to turn them back to how we had them before!
Don’t let your macro creations stop here! In no time you’ll have macros for the smallest of tasks that you are tired of looking through menu commands or changing settings everytime for!
If you have any questions, don’t hesitate to ask and remember our Forums are FULL of information with plenty of users willing to help you out!