Scatter Objects MEL Script or Paint Script Tool

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  05 May 2003
Scatter Objects MEL Script or Paint Script Tool

ok, how does one get these two to work?? Exactly i mean too, as Im a noob in the using script department. What I have is a plane modified with Artisan to form a landscape. I made a sphere for sake of simplicity (i want this to be a rock eventually) can I get this rock scattered around the landscape, yet on the landscape realitically?? I'd like to paint the rocks where i want, but I cant get either of these two methods to work. Can anyone help me??
If practice makes perfect, but nobody's perfect, then why bother practicing???
  05 May 2003
Here's a quick and dirty way to randomly scatter rocks. Instance or copy your rock so you have as many as you want. Select them all, and run

string $rockAray[] = `ls -sl -o -sn`;

for ($rock in $rockArray)
int $xPosition = `rand 1 90`; /*1 and 90 are you range of values you want*/

int $yPosition = `rand 1 90`;
int $zPosition = `rand 1 90`;

select $figure;
xform -ws -translation $random1 $random2 $random3;

Then, make your plane live, and move the rocks down, so they rest on the plane. I'm sure there's a way to make the position automatically go to the plane, but I don't know it off hand.
  05 May 2003
You can put particles on a nurbplane and give them a random goalU and goalV. After that you can instance the particle for the rocks that you have made. Remember that if you do it this way, that there is the opportunity that some rocks are intersecting each other.

:: Galactor ::
  01 January 2006
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

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
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:12 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.