SimplyMaya Forums

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

Home / forum / Animation / Mel Scripts & Programming / Particle Initial State in MEL
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 16-04-2004, 12:46 AM   #1
Brian820
Registered User
 
Join Date: Jul 2003
Location: Bay Area, CA
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Particle Initial State in MEL

Hey guys,

Trying to work with particles in MEL and I'm not sure the correct way to get my particles to the state I want to save as initial.

Here's what I want to do,

1) Create emitter/particles
2) Play for 50 frames
3) Save Particle Initial State
4) Delete Emitter

I'm golden for steps 1 and 3, and I figure step 4 shouldn't be too bad - I'm just not sure how to play my animation for 50 frames before setting the initial state. If I use currentTime 50, that gets me to frame 50 of course, but my particles have not moved as I never actually played through those frames.

Is there a flag/command I can use when creating the particles, something like setInitialAge(50 frames)?

I can see how it would be possible to overcome this by using playbackOptions to set the time slider from 0-50, but for usability I'd prefer my script not need to mess with the user's time slider. Unless there's a way to save and then revert back to the user's previous time slider settings?

There must be an easier way to do this.
Any help?
Brian820 is offline   Reply With Quote
Old 16-04-2004, 12:53 AM   #2
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Lookup the command called "runup" in the docs...

Quote:
"runup plays the scene through a frame of frames, forcing dynamic objects to evaluate as it does so."
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown 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.