SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / randomly select verts through MEL?
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 03-06-2010, 09: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, 04: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, 05:09 PM   #3
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,988
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, 08: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, 08:47 PM   #5
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,373
Thanks: 74
Thanked 710 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, 10: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, 12:35 AM   #7
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,988
Thanks: 33
Thanked 532 Times in 471 Posts
Default Re: Class Project

Quote:
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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.