MoI discussion forum
MoI discussion forum

Full Version: Snap on Surface in 3D and Ortho

From: TOM (SIRTOM)
7 May 2019   [#1]
Hi,

I went through the threads regarding this topic but still dont get it -
maybe I have the wrong settings in the "ini" file ..

Just want to be able to snap points of curves onto a sphere in
3d AND ortho. Would be happy to get a step by step instruction.
Please let me know the proper settimgs of all commands in the "ini"-file
which maybe set up wrongly.

Thanks !

TOM
From: Michael Gibson
7 May 2019   [#2] In reply to [#1]
Hi Tom, in moi.ini under the [Drawing Aids] section there is this setting:

[Drawing Aids]
<....>
DisableOnSrfInOrtho=y

If you set that to DisableOnSrfInOrtho=n then the first point that you pick in a drawing command will use "On srf" object snap in both Ortho and 3D views instead of only in 3D views.

There is an additional setting that controls how picked points after the initial one behave:

[Drawing Aids]
<....>
ProjectOsnapsInOrthoViews=y

By default that is turned on and it makes points picked in ortho views after the first point to be projected to a plane parallel to the view. That helps make things drawn in ortho views be planar.

You can turn that off by setting ProjectOsnapsInOrthoViews=n or also this one is in the Options UI under Options > Snaps > Object snap options > "Project to plane in ortho views" checkbox.

With both of those settings modified as described you will then be able to draw points snapped on to a sphere surface in both the 3D and Ortho views, but just be aware that things that you draw in the ortho view will not necessarily be planar to that view like they are with the default behavior.

- Michael
From: TOM (SIRTOM)
8 May 2019   [#3] In reply to [#2]
Thank you Michael.

Straight Snap maust be turned off to make it work, as
I realized.

I changeg the settings but it only snaps in the 3D view :-(
From: Michael Gibson
8 May 2019   [#4] In reply to [#3]
Hi Tom, do you also have grid snap turned on as well?

- Michael
From: TOM (SIRTOM)
8 May 2019   [#5] In reply to [#4]
Hi Michael, grid and straight turned off.

[*] Git it ! > I had missed to restart the file, now ot works.

Btw, where do I find I descriptio regarding the Grid-settings in
the Options-menu ?
From: Michael Gibson
8 May 2019   [#6] In reply to [#5]
Hi Tom, I'm glad you got it working now!

re:
> Btw, where do I find I descriptio regarding the Grid-settings in
> the Options-menu ?

There is no separate description available for these since it's pretty self descriptive.

"Show grid" shows or hides the grid.

"Show grid axes" shows the grid x/y axes.

"Grid size" sets the distance between grid lines.

"Snap size" sets the distance to use for grid snapping, it can be set separately from the grid size like you have grid size = 1 and snap size = 0.5 which will then make it snap at 0.5, 1.0, 1.5, 2.0, etc...

"Accented lines every" controls the frequency of accented grid lines. So for example Accented lines every 5 means every 5th line is an accented one.

X axis color controls the color of the view's horizontal grid line.

Y axis color controls the color of the view's vertical grid line.

"Grid Lines" and "Accented grid lines" controls the line width, color and line style of either the regular grid lines or the accented grid lines.

Is there a particular setting that you need to know more about?

- Michael
From: TOM (SIRTOM)
8 May 2019   [#7] In reply to [#6]
Thank you for the infos !

I tried different setting for "Snap Radius" in the Options Menu
but did not notice any difference in the snapping behaviour.
So what exactly does this setting apply to ?

And here 2 questions regarding another topic :

- I would like MOI to display the points in smaller size ? How to ?

- Is there a shortcut to open the window "3d view angles" directlly ?
From: Michael Gibson
8 May 2019   [#8] In reply to [#7]
Hi Tom the "Snap Radius" is how close the mouse pointer needs to be on the screen to a snap point for it to engage.

So if you put for example 50 in there you would need to have your mouse 50 pixels away from a snap point for it to use that snap.

If you want snaps to engage more easily then you can put a larger value in there and if you want them to only engage when you are quite close to them you would put in a smaller value.


re:
> - I would like MOI to display the points in smaller size ? How to ?

The point display is one of the few remaining areas that is drawn from a bitmap instead of procedurally. So there isn't any setting to modify for this but if you modify the bitmap images to make the images smaller that would work.

There are 4 images that you'd need to modify, they are all in the UI subfolder:
Point.png
Point_selected.png
Point_transitionfromselected.png
Point_transitiontoselected.png


- Is there a shortcut to open the window "3d view angles" directlly ?

Yup, you can use this:

script: /* Show 3D view angles dialog */ moi.ui.createDialog( 'moi://ui/ViewAngleDialog.htm' );

- Michael
From: TOM (SIRTOM)
10 May 2019   [#9] In reply to [#8]
Thank you again for your fanatsticg support, Michael !

TOM