Hotkeys for changing Grid no longer work

Previously in studio when using grid hotkeys (One Stud Grid, Grid Off, 1/5 Stud Grid) they would override any settings in “Snapping” under the model tab in studio. However, since yesterday these hotkeys no longer work.

This majorly slows down my build process, which relies on me quickly swapping between different grids, as well as using the snapping settings to move more precise and specific increments (often for laying down tracks in our cart system, but also for much more.

Here’s a demonstration of what I’m experiencing, sorry I can’t embed it: https://drive.google.com/file/d/1PeCX8jLc2iikafJqy2zDZr_fvDvmcCWs/view?usp=sharing

This is a huge time sink for me. Hopefully it can be addressed quickly :slight_smile:

Edit: turns out, unlike what I thought originally, it doesn’t seem to matter if snapping is selected, these hotkeys just no longer work at all. Ive tested this on different studio clients on different computers.

2 Likes

We should have an option for multiple grid sizes. With customisable values.

Default = 1
Ctrl = 4
Shift = 8
Ctrl + Shift = 16

Hey! So sorry these broke. While we work on fixing them up, here’s a local plugin you can install that’ll replicate the behavior. It creates some shortcuts that you can bind your keys to:

SnappingShortcuts.rbxmx (2.1 KB)

Here’s the code:

--!strict
local DraggerService = game:GetService("DraggerService")

local function makeSnappingShortcut(id: string, text: string, tip: string, increment: number?)
	local shortcut = plugin:CreatePluginAction(id, text, tip, nil, true)
	
	shortcut.Triggered:Connect(function()
		if increment then
			DraggerService.LinearSnapEnabled = true
			DraggerService.LinearSnapIncrement = increment
		else
			DraggerService.LinearSnapEnabled = false
		end
	end)
end

makeSnappingShortcut("Snap1", "Snap to Grid: Unit", "Sets the grid snapping to 1 stud", 1)
makeSnappingShortcut("Snap0.2", "Snap to Grid: 1/5", "Sets the grid snapping to 1/5 stud", 1/5)
makeSnappingShortcut("SnapOff", "Snap to Grid: Off", "Sets the grid snapping off", nil)

You can copy the lines at the bottom to create new increments as well @NicCrimson, just add your desired increments.

2 Likes

Whoa this is awesome! Once I’m out of my meetings I’ll try it. Thank you so much!!!

1 Like

Rather than fix the buttons which were already half broken and on their way out the door we decided that now that the DraggerService supports plugins interacting with these values we would just replace this functionality with a community plugin for those that still want it.

Here’s a proper grid snap quick switcher plugin to replace the buttons. It has a viewport UI to quickly add / remove / toggle between a set of grid snaps. Also supporting actions which can be assigned a keyboard shortcut or added to the ribbon.

Store link: https://create.roblox.com/store/asset/133502991066075/Grid-Snap-Quick-Switcher

2 Likes

You mentioned shortcuts, is there any way to assign shortcuts to swap between them? Even if it was just one to cycle through them, that would be great.

This plugin is amazing, thank you!

Cold you provide some more texture on your workflow here?

There’s already a default Studio keyboard shortcut to toggle grid snap on and off (Shift+X). Is cycling between all three or more values actually important or is it mostly a keyboard shortcut disabling / re-enabling snapping that you were looking for?

Honestly after asking around I am shocked at how few people utilized the grid swapping hotkeys.

For me though, it’s critical to my workflow to easily be able to swap between snapping grids, not just going between free movement and grid movement. The size of the grid matters to keep things consistent due to the nature of how building works on Roblox studio.

Its not as big of an issue in a program like blender where you can gap surfaces by filling faces in-between vertices. With parts you may end up with strange gaps or misalignments. I usually keep things on a scale of 1 to .2 so that blocks can easily slot together. While I’m not opposed to using free grid movement in some scenarios, I vastly prefer a consistent grid.

That all said, your plugin is 95% of what I want. It’s slightly faster to use hotkeys but your plugin is almost as easy to use. I also love how I can add amounts to it (72 is the standard size of our tracks, and I use 100 to move large groups of objects out of the way in such a way that I can move them back exactly to where they were.)

I’m going to mess around with InputContext to see if I can’t make hotkeys for the plugin, but if it’s not possible Im very happy using it as is.

You should be able to add hotkeys for the PluginActions under Customize Shortcuts.

Updated the plugin with an action that lets you cycle through the snaps.

I believe I am having a similar problem (see: Grid Settings No Longer Working). My workflow utilizes the Quick Access Toolbar very, very heavily. I am currently on a small development hiatus until the QAT buttons are repaired.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.