scale XYZ (all three axis ) via one controller (I am setting up spinner for size of a character)

Hi there

I know its a basic stuff i m new to maxscript n learning script on my own, I am facing problem while connecting scale xyz axis of an object to one controller. So scale should work uniformly with a single control. Please help!!!

Thanks

Comments

Comment viewing options

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

wow theres new way like

wow theres new way like that....

new exp gained

Anubis's picture

or just...

for o in selection do o.scale *= val

my recent MAXScripts RSS (archive here)

fajar's picture

F12

F12

if you insisting using it on your script theres a way, it only raw tho... including UI

rollout scaleIt "Untitled" width:162 height:27
(
	spinner spn1 "X,Y,Z Scale" pos:[19,4] range:[-100000,100000,1] type:#float width:119 height:16
 
 
	on spn1 changed val do
	(
	 if selection.count!=0 do
	 (
	 sel=selection as array 
	 for i in sel do
	 	(
		i.scale.x=val
		i.scale.y=val
		i.scale.z=val
		)
	 )
	)
)
 
createDialog scaleIt 

Comment viewing options

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