Repeat or loop complex command from macro editor

Dear Everybody
on Rhino for windows i can use the macroeditor to - for example - loft a surface, select the result and lock it:
`-_loft _enter _enter _selnone _sellast _lock
now i can press spaceto repeat this command-combination.
this does not work on the mac version
the mac version will just repeat the “_loft” part of the macro
how can i have the same functionality on the mac-side?

there is a old topic about a similar issue - but this is just about automatically repeat a command (without pressing space), and it is not solved

@pascal
still no Calvados no Stella and no Perrier…

best - Tom

Sounds like a job for Python scripting to me
Try it - it’s great !

Dear Graham
thanks for having a look at my question.
i need a solution, that i can show my students, that use Rhino since 5 days and do not have the background to start programming - they do an apprenticeship in a pottery-Workshop.
I am a bit angry (on mc neel) for a lot of smart things regarding the UI that work on the Windows side, but not on the Mac side…and of course, nearly every feature can be solved with phyton or (i prefere:) c#…
thanks so fare
tom

Ahh yes I see : that’s quite frustrating :slightly_frowning_face:
:thinking:
:slightly_smiling_face:
Copy and paste ?

Got that, thanks.

https://mcneel.myjetbrains.com/youtrack/issue/RH-51349

-Pascal

It works when you make an alias for it, say a single character like an “I” for instance.
pressing the spacebar will repeat the “I” and thus repeat the macro behind it.

Max.

Dear pascal and @maxz
thanks for tracking and thanks for the workarround.

@pascal
there is another “ugly” issue:
if you assign an alias and for example i love: m for move and c for copy
and i want to use the command _mirrow - i have to type the the underscore _ othwise - as soon as i type m it becomes a move command that is fired.
also this is different to the windows version - where i have to press m + space before i fire the command
while on the mac side already the m on it s own will fire the command…
and for the c there is curvaturegraph and others…

thanks and good night
tom

Hi Tom - as far as I can see on Rhino 5&6 for mac it behaves as on Windows - M by itself, without an Enter or space, does nothing but suggest M at the top of the command list. If I then type an ‘i’ I see Mirror in the list… am I misunderstanding the process you’re describing?

-Pascal

my rhino version: 5.5.3 on mac os x 10.10.5
(1)
set up m as a shortcut / alias for _move
(2)
now pressing m will fire move-command
???

Hi Tom, so that would mean you could not run any command that starts with ‘m’ other than Move- is that the case?

This is where you set this up, correct?
image

-Pascal

no - i set it under Keyboard shortcuts
(and i change language depending on the class i am teaching… that is why you see the german verschieben)

ok - let s skip this second aspect - it works as expectet when set up as alias.

Hi Tom - keyboard shortcuts indeed run as is - on Windows you do not get to use plain letters, only f-keys and modified letters … I would use an alias here…

https://mcneel.myjetbrains.com/youtrack/issue/RH-51350

-Pascal

…still some work to make the mac and windows experience comparable…
i teach classes with both mac / pc and that is not a fluent experience to have both “worlds” at the same time.
i do videos and tutorials - often twice the work…
but many thanks for the fast clarification

RH-51349 should be fixed in the latest RhinoWIP. Please give it a try.

@dan
this Bug is back on current release candidate

systeminfo_tomp_24-07-03.txt (4.9 KB)

This now seems to apply to R8 on Mac too…

Hey Tom.

I see this regression here. Thanks for letting us know. I’ll investigate right away.

Spoke too soon. I had thought I could reproduce it, but I think it was mistaken.

Here are my steps:

  1. In Rhino 8.9.24183.19002, start a new modeling window.
  2. Draw two planar polylines and select them.
  3. Run the MacroEditor command.
  4. Paste the following script: ! -_loft _enter _enter _selnone _sellast _lock
  5. Click the run button.

I see the following:

and the lofted surface is locked.

I see this same behavior in 7.37.24107.15002 and 8.8.24170.13002.

I suspect I’m just missing some detail here. Please help me out.

the missing info:

draw 4 curves.
run the macro on 2 curves
now press space (with the intention) to run the macro again / repeat the macro on the other 2 curves.

you will only get the first command loft, not the second _lock command
(as far as I remember)

the issue is about a macro being not repeatable.

…which is a great feature for receptive work…

Thanks for the hand-holding Tom. Sorry I missed that detail. I can reproduce this now. I reopened:

RH-51349 MacroEditor: Repeat the whole macro

Looks like the regression happened between 7 and 8, because this is a bug at least as far back as 8.1.