Beer glass scene creation
This course contains a little bit of everything with modeling, UVing, texturing and dynamics in Maya, as well as compositing multilayered EXR's in Photoshop.
# 1 03-06-2010 , 09:36 PM
Jordanpierreag's Avatar
Registered User
Join Date: Aug 2008
Posts: 8

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.

# 2 04-06-2010 , 04:21 AM
bullet1968's Avatar
Lifetime Member
Join Date: Feb 2010
Location: Australia
Posts: 4,255
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
# 3 05-06-2010 , 05:09 PM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988


Imagination is more important than knowledge.
# 4 09-06-2010 , 08:02 PM
Jordanpierreag's Avatar
Registered User
Join Date: Aug 2008
Posts: 8

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...

# 5 09-06-2010 , 08:47 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
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.

# 6 09-06-2010 , 10:03 PM
bullet1968's Avatar
Lifetime Member
Join Date: Feb 2010
Location: Australia
Posts: 4,255
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
# 7 11-06-2010 , 12:35 AM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988

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.
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads