R Soul on 7/8/2021 at 18:29
I recently noticed that inside default.bnd there's a keybind for set_grid.
I think it should be removed. set_grid forces the vertices of the selected brush to always snap to the grid. There doesn't seem to be a command turn it off. It can be useful, e.g. it allows a curved passage to be created out of cuboids with neat corners, but they way it distorts brushes could lead to portalization errors. In fact it's guaranteed with some cylinders and dodecahedrons.
Having a keybind means it could be enabled by mistake. I recently got a new keyboard and the slight change in the feel has led me to accidentally press Shift S a few times, which has then enabled set_grid. Fortunately it's only applied to a couple of non-rotated cuboids, but I'd hate to create some complex brushwork involving other shapes only to get a portalization error because of a sort of typo. Nothing wrong with using it occasionally of course, but if you have to actually type the command you'll remember it, and will stand a far better chance of knowing where to start looking if you have problems.
I think I may have been trying to press Ctrl Z as the relative positions are about the same.
This may have been with us forever, but I suspect it was introduced either with Tafferpatcher, T2Fix, or one of the Dromed Toolkits out there.
Hit Deity on 12/12/2022 at 00:29
Hey, thanks for the heads-up. Surprised you got no comments on this find.
Along similar lines, there's another in the Alt- section that has a run command that utilizes that same command in it:
edit bind ins+alt "run .\cmds\GridClone.cmd"
..and what's listed in that GridClone.cmd file:
get_grid_enabled
insert_brush
set_grid
I commented mine out for Alt-Ins as well; granted, it's not as likely a combo, but I just don't want to take any chances with that stuff.
Although I wonder, what does "get_grid" do?
vfig on 12/12/2022 at 22:40
Quote Posted by R Soul
set_grid forces the vertices of the selected brush to always snap to the grid. There doesn't seem to be a command turn it off.
if you disable the grid (i.e. turn off "Use"), then do the "set_grid" command, it clears the snapping from the selected brush.
Quote Posted by Hit Deity
Although I wonder, what does "get_grid" do?
"get_grid" updates the current grid scale to the grid scale of the selected brush. e.g. if you set_grid a brush while at grid scale 15, then change the grid scale to 13, then select the brush and "get_grid", the current grid scale will be set to 15.
Hit Deity on 13/12/2022 at 02:20
Vfig.. can I borrow your brain for a few months? I sure could make use of it. :laff:
Thanks for the info.