· 8 years ago · Jul 08, 2018, 10:36 AM
1/*
2/ Script: Toggle 3D & 2.5D snap modes
3/ Author: Panteleev Sergey
4/ Year: 2018
5/ Contacts: fatbbc @ gmail.com
6*/
7
8macroScript 'Snap2.5DToggle'
9category:"Snaps"
10tooltip:"Toggle 2.5D Snap"
11(
12
13 if snapMode.active and snapMode.type != #2_5D then (
14
15 snapMode.type = #2_5D
16
17 ) else (
18 snapMode.active = not snapMode.active
19 snapMode.type = #2_5D
20 )
21)
22
23macroScript 'Snap3DToggle'
24category:"Snaps"
25tooltip:"Toggle 3D Snap"
26(
27 if snapMode.active and snapMode.type != #3D then (
28
29 snapMode.type = #3D
30
31 ) else (
32 snapMode.active = not snapMode.active
33 snapMode.type = #3D
34 )
35)