Notifications
Clear all
[Closed] maintaning aspect ratio
Apr 25, 2005 12:18 pm
I wrote this simple script and my problem is that I want to maintain aspect ratio =1 when scaling. How can I do it?
macroScript lukxRandomScale
category:"lukxScripts"
(
for x in selection do
(
scale x [(random 0.95 1.05),(random 0.95 1.05),(random 0.95 1.05)]
)
)
2 Replies
Apr 25, 2005 12:18 pm
Hi,
Maybe this does what you need:
for i in selection do
(
local theVal = random 0.95 1.05
scale i [theVal, theVal, theVal]
)
Light
Apr 25, 2005 12:18 pm
thank you very much! I wish I could someday solve this kind of easy things in maxscript by myslef. Thank you again Light.