Notifications
Clear all

[Closed] maintaning aspect ratio

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

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

thank you very much! I wish I could someday solve this kind of easy things in maxscript by myslef. Thank you again Light.