What is the command for Scale Uniform / Non-Unifrom and Squash?

Hello

When I turn on the Listener, it prints max scale no matter which of the three scaling modes I pick; Scale Uniform / Non-Unifrom and Squash.

How can I pick either of them through maxscript?

Comments

Comment viewing options

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

.

toolMode.uniformScale()

toolMode.nonUniformScale()

toolMode.squashScale()

Haider of Sweden's picture

.

Wonderful! This is how I did

macroScript Select_Uniform
	category:"Haider"
	buttonText:"Select and Uniform Scale"
	toolTip:"Select and Uniform Scale"
	icon:#("Maintoolbar",25)
 
(
	toolMode.uniformScale()
)
 
 
macroScript Select_NonUniform
	category:"Haider"
	buttonText:"Select and Non-Uniform Scale"
	toolTip:"Select and Non-Uniform Scale"
	icon:#("Maintoolbar",27)
 
(
	toolMode.nonUniformScale()
)
 
macroScript Select_Squash
	category:"Haider"
	buttonText:"Select and Squash"
	toolTip:"Select and Squash"
	icon:#("Maintoolbar",29)
 
(
	toolMode.squashScale()
)

I wonder if I can do so that the buttons get stay pressed, ie on isChecked, when I pick each mode. Is that possible?

Kind regards
Haider
www.haider.se

Comment viewing options

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