Macro for Mirror around Y-Axis?

I find myself mirror/copy an object around the Y-axis many times, so I tried to customize my command set. I only half-succeeded with this: !_Select _Enter _Mirror _Copy=yes _Yaxis _Enter
When I preselect an object, it works ok. When I start the macro first, I still have to enter after selecting an object. I have a feeling this is inherent of the Select command, in which case I could loose the first _Enter in my macro, right?

Any thoughts anybody?

try this-
! _Mirror _Pause _YAxis

Shorter=better, but I still need to enter after selecting an object (preselect works ok).

That’s because you can have multiple objects to mirror, so you need to hit Enter to tell Rhino you are done with selection.

–Mitch

Right, I can live with that. Other question: how do I copy/modify an icon for my macro button?

download this manual- http://www.rhino3d.com/download/rhino/5.0/Rhino5Level2Training/

go to the customizing interface section- there are very detailed instructions for doing exactly what you are asking. There are a number of cool little nuances that you’ll miss if I just tell you how to make a button, which I’ll do anyways, cuz I’m good like that.

(the short answer is ctrl+drag an existing button then shift+ right click to edit, then click the icon in the upper right to edit the image)

He’s on Mac, doesn’t work that way unfortunately… I can’t find the instructional page for Mac, but it starts with duplicating the whole toolset, as you can’t modify the default.

Ahh, here it is…

–Mitch

Thank you Mitch, but I used that part already to create a custom PopUp palette and another one. It is just that, now that I have created a new macro/button, I want to give it a recognizable icon (based on the original mirror icon).
I didn’t manage to do it the way theoutside proposed. I did try to find something in the Level2 manual, but I fear that it is also Rhino for Windows based.

Max.

I have NO idea how to create custom icons for Mac Rhino. In Win Rhino there is a button image editor… --Mitch

Ha! I found something.
Thanks to Marlin’s advice I made a screen dump of the existing Mirror-icon, added an “X” to the picture, saved it as a .pdf and dragged it onto my macro-button in the customizing panel. Not perfect, but good enough.

Max.

But it should have been a Y :blush::angry:

1 Like

lol
:slight_smile:

1 Like

As I said, this works. But there is something fundamental I don’t quite understand. When !_Mirror is executed (without preselecting anything), it includes pausing for a selection and requiring Enter to confirm. So I figured I could drop the _Pause command since after finishing the _Mirror command there should be nothing else to pause for. Yet this results in a message “unknown command YAxis”
Can someone explain this to me? When working with the regular command _Mirror all I have to do after I made the selection is to hit “y” for the option mirror around Y axis, but adding statements like YAxis=yes to invoke this option lead me nowhere.

Max.

Hi @maxz , this works for me here …

last command in popup

Works with selected or deselected objects

My macro button / command

I remember that it was Jeff who told me about dragging a PDF onto the ? Icon . I haven’t looked through the program to see where the main ones are stored, yet.

«Randy

Hi Randy.
Yes, that’s what I said, that works for me as well. It is just that I am trying to grasp the need for the _Pause in the macro. I added _Copy=yes in there and I want to understand why I could not do something similar for the Y axis option. Just my investigative nature… ahem. Otherwise I am fine…:slight_smile:

Max.

Hi Max,

works here without the _Pause . I was just taking the _Pause from the Z-Axis command … in the lower left commands window.

«Randy

The _Pause in the macro is there to tell Rhino to stop and wait for user input - screen picks of objects, a point to place something, etc… If the command allows multiple objects, then you will also have to hit Enter at the end of picking to tell Rhino you are done selecting. Without the _Pause, the macro continues without stopping, and since you haven’t been able to pick anything, the command just ends without doing anything. If you preselect some objects, the command doesn’t actually need the pause, so it is ignored.

HTH, --Mitch

1 Like

A better explanation @Helvetosaur, of course. Thanks

1 Like

I made 2 icons for X & Y once I added these to my popUp menu they look small. Looked fine in the customize window. If anyone wants them, here they are.

@dan do you know where the icons are located so we can copy and make our own for custom macros?

Mirror Y.pdf (27.8 KB)
Mirror X.pdf (25.8 KB)

«Randy

Hi
This works for me: No need to press enter either:

!_Mirror
_Pause
_Copy=Yes
0,0 0,1

Yes, that’s exactly what I have here… There is still an Enter necessary if you don’t pre-select objects… You may not even notice you’re doing it if you’re used to clicking the RMB or spacebar to confirm selections and launch commands.