VIEWPORT AUTO SNAP HELP ?
i try to develop a script , it can auto detect viewport , i try but it not work , can you help me , sorry my bad english
fn autosnap =
(
global ar = #("view_top","view_bottom","view_right","view_left","view_front","view_back" )
global hr =viewport.getType() as string
snapMode.active = true
for i in 1 to ar.count do
(
if hr != ar[i] then
snapMode.type = #3D
else
snapMode.type = #2_5D
)
)
registerRedrawViewsCallback autosnap
unRegisterRedrawViewsCallback autosnap
Comments
Thank
You save my day :)
.
Try this:
Tools and Scripts for Autodesk 3dsMax