Adding modifier key to toggle autogrid function.

Hi Guys, just wondering how should I do about doing this.

--- whenever during object creation , when a modifier key is pressed down( alt, for example ) , autogrid will be one, when the key is relased , autogrid is off.

Thanks.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

that will do the trick

that will do the trick but u'll have a problem to disable this callback

fn rvcb_autoGrid = (
	maxOps.autoGrid = (isCreatingObject()) and keyboard.shiftPressed
)
registerRedrawViewsCallback rvcb_autoGrid
--registerRedrawViewsCallback rvcb_autoGrid

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.