ScriptSpot

Forum topic · General Scripting

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

By manjot · 2012-12-15

Description

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 (3)

fajar · 2012-12-18

wow theres new way like that....

new exp gained

or just...

Anubis · 2012-12-17

for o in selection do o.scale *= val

fajar · 2012-12-17

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