Brian Cassil Posted August 19, 2005 Share Posted August 19, 2005 Is there a way to select lots of objects and add some type of modifier/controller that would allow me to randomize the z-position? I swear I've seen this before but can't find how to do it right now. Link to comment Share on other sites More sharing options...
gfa2 Posted August 19, 2005 Share Posted August 19, 2005 There are some good scripts on http://www.scriptspot.com. The randomtransform 1.22 by blur works really well. Link to comment Share on other sites More sharing options...
Brian Cassil Posted August 19, 2005 Author Share Posted August 19, 2005 Thanks! I've got and I'll give it a try. Link to comment Share on other sites More sharing options...
Brian Cassil Posted August 19, 2005 Author Share Posted August 19, 2005 Works great! Link to comment Share on other sites More sharing options...
abicalho Posted August 20, 2005 Share Posted August 20, 2005 Select all the objects you want to randomize. Open MAXScript Listener and type: for i in selection do i.position += random [0,0,-20] [0,0,20] This will randomize the objects in the selection 20 units up or down in Z. Same can be used for rotation (I do it all the time with RPCs): for i in selection do i.rotation.z_Rotation = random 0.0 360.0 Hope it helps, Link to comment Share on other sites More sharing options...
Brian Cassil Posted August 22, 2005 Author Share Posted August 22, 2005 My first lesson in MaxScript! Obrigado rapaz! Link to comment Share on other sites More sharing options...
oluv Posted August 22, 2005 Share Posted August 22, 2005 Select all the objects you want to randomize. Open MAXScript Listener and type: for i in selection do i.position += random [0,0,-20] [0,0,20] This will randomize the objects in the selection 20 units up or down in Z. Same can be used for rotation (I do it all the time with RPCs): for i in selection do i.rotation.z_Rotation = random 0.0 360.0 Hope it helps, wow cool! are there more simple but effective tutorials like this? i was always afraid of maxscript, but it seems to be quite friendly Link to comment Share on other sites More sharing options...
abicalho Posted August 22, 2005 Share Posted August 22, 2005 I have a few on my website. THere are a dozen on ScriptSpot.com and also several mini tutorials in the MAXScript Help. Unfortunately, my AU class on MAXScript was not accepted - I think it doesn't draw many users to it. Always glad to be of service, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now