Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 03-06-2010, 10:36 PM   #1
Jordanpierreag
Registered User
 
Jordanpierreag's Avatar
 
Join Date: Aug 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default randomly select verts through MEL?

anyone have any idea how to randomly select verts on any object through Mel scripting? I want to make a script where when a button is pressed, there is a new selection of verts.
Jordanpierreag is offline   Reply With Quote
Old 04-06-2010, 05:21 AM   #2
bullet1968
Lifetime Member
 
bullet1968's Avatar
 
Join Date: Feb 2010
Location: Australia
Posts: 4,255
Thanks: 158
Thanked 651 Times in 621 Posts
Default

I wouldnt have a clue but I am curious as what you want it for mate??? You have my attention if not solution.

cheers bullet
__________________
bullet1968

"A Darkness at Sethanon", a book I aspire to model some of the charcters and scenes
bullet1968 is offline   Reply With Quote
Old 05-06-2010, 06:09 PM   #3
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,982
Thanks: 33
Thanked 532 Times in 471 Posts
Default

http://www.creativecrash.com/maya/do.../random-select
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 09-06-2010, 09:02 PM   #4
Jordanpierreag
Registered User
 
Jordanpierreag's Avatar
 
Join Date: Aug 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default Class Project

I'm trying to create a sort of terrain maker for class but I wasn't sure how to go about doing it. I want a button that when its pressed, create a random terrain. I also want to create a slider that lessens or increases the depth of the random hills it creates. Something like that. I'm still not sure what to do. Hmmm...
Jordanpierreag is offline   Reply With Quote
Old 09-06-2010, 09:47 PM   #5
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,371
Thanks: 74
Thanked 709 Times in 642 Posts
Default

The extrude button has a random attribute that you can change the value of to introduce random noise into the extrusion.

Also the transform component (I think) tool has random attributes that you can specify for each axis. Hope that helps.
stwert is offline   Reply With Quote
Old 09-06-2010, 11:03 PM   #6
bullet1968
Lifetime Member
 
bullet1968's Avatar
 
Join Date: Feb 2010
Location: Australia
Posts: 4,255
Thanks: 158
Thanked 651 Times in 621 Posts
Default

I thought thats what you may have wanted it for. Im lucky, being a Surveyor I have terrain data I have actually mapped to use in the future. I just have to find out why my .DXF wont import into Maya, the plug in is on.

Good luck with it though.
__________________
bullet1968

"A Darkness at Sethanon", a book I aspire to model some of the charcters and scenes
bullet1968 is offline   Reply With Quote
Old 11-06-2010, 01:35 AM   #7
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,982
Thanks: 33
Thanked 532 Times in 471 Posts
Default Re: Class Project

Originally posted by Jordanpierreag
I'm trying to create a sort of terrain maker for class but I wasn't sure how to go about doing it. I want a button that when its pressed, create a random terrain. I also want to create a slider that lessens or increases the depth of the random hills it creates. Something like that. I'm still not sure what to do. Hmmm...
Yes. Use the script I provided above, then activate the soft selection/soft mod tool, adjust the spread, then pull up.

There are other ways, but they require some technical know-how. I'm happy to help you out, I just want to know if all the really easy stuff works first.
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL headache! happymat27 Members Lounge 5 05-12-2010 09:43 AM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 04:41 PM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.