Hello,
I find that some commands are not taken into account as actions in command history. For example, if you use distance command in middle of other commands, and then perform undo or redo, distance command instances are skipped. Likewise with View commands such as pan and zoom. They are not counted as valid instances in Rhino command history. I think it is a very nice feature.
Now, I am wondering if I can also write (or run) my custom scripts in the similar manner.
Thanks,
MHK.
Hi Gijs,
Forgive me I am replying to the thread after a month. Script is my side work and I was busy with other stuffs in last month.
You are correct. I was confused with my needs at that point. There was a script I want to run without undo stack and actually it operates naturally that way (without popping on undo stack). -_RunScript (if UCase(Rhino.ViewDisplayModeEx())=“WIREFRAME” then Call Rhino.ViewDisplayModeEx(,“SHADED”) Else Call Rhino.ViewDisplayModeEx(,“WIREFRAME”) )
However, this is also another behavior I noticed with the Rhino command executions. The “Delete” command does not add up on Repeat Command by Spacebar. If I press the spacebar, other commands will be repeated, but never the “Delete”. I would also like the same behavior with the script above, for example. Is it possible to achieve this?
Thanks,
MHK.
Thank you very much!! I have never explored that part of the option.
You helped me discover not just “Never repeat these commands” settings, but also very useful “Run these commands every time Rhino starts”. I have always needed it; just didn’t know I could do that.
Thanks a lot! Have a nice day.