View Full Version : Need hlp scripting
LuckyDevil 07-24-2004, 06:01 AM hi, im just learning mel scripting....actualy i started 3 days ago hehe. im trying to make a script that randomize meshes for you. if you guys get it.
im need this to make some rocky meshes and i want to do it pretty fast and making one by one takes time, so i thought of learning mel for this but....i need the script soon and i dont think i can learn mel in the amount slotted time.
thank you any one who can hlp me.
|
|
Nicool
07-24-2004, 09:12 AM
Hye,
Welcome to melScripting buddy :) I would direct you to my article last part to study simple scripting task and syntax that could help you in learning melScripting. Check it out at http://ndhaussy.free.fr/temp/spreadArticle Seriously, I advise you to read it, I made it to be really simple to understand ! (It is what I wanted someone to explain me when I learned I do believe).
About your project their already exist scripts to randomize meshes one or two are downloadable at highend3d.com you should look at this) and their is a famous tool taht generate quite well differetn types of rocks.
If you want gidelines for your scripting project...
What do you need to know ?
- variable types and declaration
- arrays
- the way to use melScript functions
- for loop
- rand mel function
That's all !
What way to get it to work ?
- put into a string variable the name of the mesh you want to randomize
- list into an array all the mesh vertices
- then in a loop for each vertex
-- get a random value for x
-- get a random value for y
-- get a random value for z
-- move this current vertex to random values
--end loop
Feed back please, hope it helps !
.
LuckyDevil
07-25-2004, 02:54 AM
wow thanx this is just what i needed thx a bunch. this really helps, if i need some more hlp i will just post i will need i know it.
CGTalk Moderation
01-18-2006, 07:00 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.