ScriptSpot

Forum topic · General Scripting

Can not control Angle Snap use Maxscript?

By aksmfakt132 · 2018-05-23

Description

I would like to snap at an angle of 5 degrees, but occasionally I want to snap at an angle of 45 degrees.

It will make my work very fast and accurate

Especially when I snap at 40 or 50 degrees, I feel very bad

Besides, I only Use graphics tablets
(A graphics tablet is very useful, but vulnerable to using this snap feature)

Can not I adjust this with a shortcut?

Comments (1)

.

jahman · 2018-05-25


(	-- toggle between 5.0 and 45.0 angle snap
	
	globalInstance = (dotNetClass "Autodesk.Max.GlobalInterface").instance	
	currentAngle = globalInstance.coreinterface7.SnapAngle_ as integer
	
	if currentAngle != 5 then currentAngle = 5 else currentAngle = 45
	globalInstance.coreinterface7.SnapAngle_ = currentAngle
	
)