Snap to Grid for Plugins in Wiring View

Hi

I’ve read about a clever script for snap to grid - for widgets. Is there an equivalent function for plugins in the Wiring view? My OCD really hopes so :slight_smile:

Thanks!

1 Like

Those circled can help :wink:
Do try them!

1 Like

Thank you, can’t believe I missed those! V happy!

1 Like

Do you remember where you saw this script @jwdnty ? The lack of grid snap is driving me mental.

Hi Eskil
I never actually located the script. Instead I used the Center and Evenly Distribute functions mentioned. Works great. Although an undo function here wouldn’t go amiss!

They work but they’re not ideal. It messes the design up about as often as it helps. I guess i am used to the nice auto-snap and size hashlines that a lot of other diagramming tools have.

I realized how to use the UI design functions a little better… The “center” and “distribute” functions depend on which widget you select first. The first selection will be the one the others align/distribute in relation to. So that helps keeps your design looking clean.

1 Like

Even with the Align and Center commands, Snap To Grid would still be very helpful. Can you point to that script?

There are no script functions that control the position of plugin blocks in Wiring view.

I was referring to this from the OP :up_arrow:

Oh ok. I don’t recall seeing a script, but the feature request for widget snap to grid has been made a number of times.

If you wanted to give it a go, the functions GetWidgetBounds and SetWidgetBounds will be what you need to work with.

https://gigperformer.com/docs_5_0/SystemFunctionList.html

1 Like