Page 1 of 1

Methods to normalize blueprint entity positions and/or enable snapping at the blueprint size

Posted: Sun Aug 07, 2022 4:02 pm
by sparr
In the GUI I can check "Snap to grid" on a blueprint and the width/height will be calculated automatically while the positions of the entities within the blueprint are shifted to put a corner of the blueprint at the origin.

I'd like a way to trigger one or both of these behaviors (or at least produce the relevant values) in a script, rather than having to duplicate all of the relevant logic and calculations in Lua.

Re: Methods to normalize blueprint entity positions and/or enable snapping at the blueprint size

Posted: Sun Dec 08, 2024 11:46 pm
by sparr
I discover that I need this again now, as I'm trying to create blueprints programmatically that need to have entities with normalized positions as if the player had created/manipulated them manually. So... bump?

Re: Methods to normalize blueprint entity positions and/or enable snapping at the blueprint size

Posted: Mon Dec 09, 2024 9:12 pm
by protocol_1903
+1