SimplyMaya Forums

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

Home / forum / Lounges / Maya Basics & Newbie Lounge / random instanced object...
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 24-10-2004, 09:28 PM   #1
tinokl
Subscriber
 
Join Date: Oct 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy random instanced object...

i'm back :p
so now to my question
i'd like the particle to choose one of my instancer objekts (i've got 3 ) and i tried some expressions but i'm very new to expressions

so it didn't worked...


can anyone help me please

thx...

tino
tinokl is offline   Reply With Quote
Old 25-10-2004, 10:38 AM   #2
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

ok quickly here's how you do it:

create a particle system, add an attribute to it called index and make it a per particle float attribute.

Now create your objects to instance. E.g. a sphere, a cone and a cube.

select them and create a particle instance. In the instancer options there should be an option called "object index" change that to "index".

Now create the following expression in your particleShape "per particle (array) attributes" under the "index" entry (right click and create a creation expression)

particleShape1.index = rand(0, 2); (where particleShape1 is the name of your particleShape and the rand number is the number of objects you have to randomly choose from.

That's about it, and incidently this is roughly how i did the text effects in AVP earlier this year see you learn something new everyday


Alan
__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 25-10-2004, 11:54 AM   #3
tinokl
Subscriber
 
Join Date: Oct 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Talking thanks alot

ok now its much easier than before (maby because i know how to do it now...:p )

thx for help

tino
tinokl 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

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.