PDA

View Full Version : Random Scale Objects script?


Jynks
06-29-2007, 04:23 AM
Anyone have a max script that can randomly scale objects with in a range?

Eg.. each object selected is scaled +2% -> -2% etc etc

I only need them scaled uniformly but if there is a script that can do it and more i would still use it..... when cloning large amounts of object i think tiny variations of scale produce a better result.. but haven't been able to find a max 9 script to do this... everything on scriptspot is to old (plus i find that site really hard to navigate nowadays :)

Any help would be appreciated.

Jynks

erilaz
06-29-2007, 04:47 AM
It's a fairly simple calculation:


undo on
(
for obj in selection do obj.scale *= (random 0.95 1.05)
)


Just change the range in the random brackets to alter the amount of scale percentage (based off 1.0 not 100%)

In fact, you get get really freaky and animate it over time:

undo on
(

animate on
for x = 1 to 100 do --over a frame range of 100
at time x (for obj in selection do obj.scale *= (random 0.95 1.05))
)

Jynks
06-29-2007, 05:34 AM
Thank you erilaz (http://forums.cgsociety.org/member.php?u=6001)..... i keep asking my boss to give me some time alone to learn maxscript but there is always a new deadline :(

Thanks again

thatoneguy
06-29-2007, 07:40 AM
Hehe perhaps we could agree to refuse to help you in the future. Then you can tell him. "They're all being mean and unless you give me time to learn maxscript they won't help me anymore."

"Teach a man a script and you help him for a day. Refuse to help him and he can blackmail his boss into giving him time to become a better employee."

:)

davestewart
06-29-2007, 07:47 AM
Absolutely! No more help from now on... ;)

handiklap
06-29-2007, 12:41 PM
Absolutely! No more help from now on... ;)

Aaahhhaha. What a bunch of jerks.




























































































count me in.

soulburn3d
06-30-2007, 11:00 AM
You can also check out the RandomTransform script at http://www.neilblevins.com check the soulburnscripts area.

- Neil

Jynks
06-30-2007, 01:33 PM
Hehe perhaps we could agree to refuse to help you in the future. Then you can tell him. "They're all being mean and unless you give me time to learn maxscript they won't help me anymore."

"Teach a man a script and you help him for a day. Refuse to help him and he can blackmail his boss into giving him time to become a better employee."

:)

omg talk about your all time backfires.

CGTalk Moderation
06-30-2007, 01:33 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.