Keyboard nudge settings should be a document property

I’m have files open from different projects from different clients with wildly different nudging requirements, and when I jump from one file to another whatever I set in the last file is immediately applied to all instances and I have to change them again every. Time.

Hmm, interesting idea, how are you going to know what nudge settings have been set for a particular file?

Details, details!

Well as per the other thread today concerning mesh settings, it might be useful to create a set of buttons/aliases to set the desired collection of nudge settings with one click…

Oh I have aliases for setting the nudge settings, it’s just the annoyance that they would seem to be better attached to the file than to “Rhino.”

1 Like

If those ‘buttons’ were more like radio buttons, so that there was a visual indicator of what ‘gear’ you’ve selected, that would be really useful…

<tangent>
Might’ve missed that one but in case it was not mentioned, V8/WIP has retrievable mesh settings…

</tangent>

-Pascal

Ok, thanks for that… In my case a set of toolbar buttons will still be faster than drilling down into DocProperties though.

I have same wish: I work with different document properties, some in Meters, some in Millimeters, and its a nuisance to have to change the Nudge step setting in general Rhino preferences every time I open up a new document.

Is there a way to attach the nudge settings to the document?
Or as @Helvetosaur suggest: create a set of toolbar buttons with different preferred Nudge-step settings ?

What is an alias? How do I make the aliases for that?

Thanks

No, there is not - they remain general options.

Here is a general macro for setting Nudge options:

NoEcho ! _-Options
_ModelingAids _Nudge
_AltPlusArrows=_No 
_Direction=_CPlane
_Step=0.1 
_ShiftStep=1.0
_ControlStep=0.01 
_EnterEnd

You can change the various options/values as you like to create different toolbar buttons.

https://docs.mcneel.com/rhino/7/help/en-us/index.htm#options/aliases.htm?Highlight=alias

To create an alias, go into Options>Aliases , hit the “New” button, put the shortcut (alias) on the left hand side and the macro or script on the right hand side.

wow thankyou :slight_smile:
(I love Rhino :star_struck:)

i have the feeling i saw a discussion or a few words quite a long time ago about making nudge screen/zoom related and not via fixed distance settings according to the set model units, maybe i am dreaming that up but i think it would be a good solution for many of the nudge needs, make that a toggle between regular and proportional.

Hi Helvetosaur
I couldnt insert your Macro in the Alias editor. It seem to only accept one line ?

I have now made my first ever toolbar button, using your macro ! Really cool, with left click for Meters and right click for Millimeters. Awesome :slight_smile: Thankyou !

But how do I change the direction to “use View axis” ?
I tried _View instead of _Cplane, and it crashes Rhino.
Or maybe a macro just for the steps, and I will use whatever direction I have set in the setting ? (I usually always use View axis)

I am curious too . I have tried altering little bits, like deleting some spacebar typos after each line - and that made Rhino crash too ? Is that a bug ?

Did Rhino actually crash? Did you get a crash report dialog? I would be surprised that something like that would cause it to crash, the worst is it should simply say “unknown command”. However, as there is a NoEcho at the beginning of the macro, it cuts the command line responses until the end of the macro. So maybe it looks like nothing is happening, but Rhino has not crashed, it is still active… If you have a repeatable example that does indeed make it crash, please do post it here. While testing, you can remove the NoEcho so that it will print everything to the command line and then you will be able to see where the error is.

You can edit the macro in a text editor to make it all in one line, substituting spaces for the Enters.

NoEcho ! _-Options _ModelingAids _Nudge _AltPlusArrows=_No _Direction=_CPlane _Step=0.1 _ShiftStep=1.0 _ControlStep=0.01 _EnterEnd

Dunno, it seems to work here…

are you saying _View is the correct command for direction “use View axes”

Yes…

Changing the line
_Direction=_View crashes Rhino , every time.

Also deleting the line
_Direction=_CPlane
crashes Rhino

Ah, you’re on Mac, haven’t tested there…

yeah sorry about that :slight_smile:

A test file. Maybe the button can be edited in Windows ?
Edit Toolbar Button Nudge.3dm (2.4 MB)