Switch layer in a particle layer

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
hayasidist
Posts: 3921
Joined: Wed Feb 16, 2011 11:12 am
Location: Kent, England

Re: Switch layer in a particle layer

Post by hayasidist »

Greenlaw wrote: Mon Nov 17, 2025 11:08 am Okay, one more test before I go: I cranked the lifetime up to 400 frames, and sure enough, the layer order changed at around frame 400, when the first particle dies. Not sure why the following particles dying don't affect the order.
I'm firmly in the realms of guesswork here, so take everything I say next as "I'd probably have done it that way" rather than "that's how it is" (and by all means, please correct me!)

My hypothesis: Create as many shapes as the particle count for each particle "sublayer" - let's stick to one particle type and a particle count of 5 -- so you'll get shapes S1, S2, S3, S4, S5 - and they will stack in that order, with S1 at the bottom. Have them hidden somewhere.
When the particle system starts, display them (and move them) in sequence, S1, S2.... and that explains the initial overlap (just as you'd get in a moho vector layer with 5 shapes created in that order and each slightly displaced from one another.)
S1 now comes to the end of its journey, so it goes back to the "hidden" state. When it's time for it to reappear, it comes back - and it's still at the bottom of the stack, so looks to be under S5; then S2 comes to its end, it reappears above S1 etc etc etc...
User avatar
Pierre Gombaud
Posts: 161
Joined: Mon Feb 23, 2015 2:15 am
Location: France
Contact:

Re: Switch layer in a particle layer

Post by Pierre Gombaud »

Wow, this post kind of blew up, haha!
There is a lot of great advices and technics, thank you for that, guys! I'll give another try at it this week end.
Particles is an even more fascinating subject in Moho with you all
User avatar
Greenlaw
Posts: 10648
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Switch layer in a particle layer

Post by Greenlaw »

Pierre Gombaud wrote: Tue Nov 18, 2025 1:17 pm Particles is an even more fascinating subject in Moho with you all
I'm very excited about Moho particles thanks to your experiments, Pierre! Keep up the fantastic work! 😸
Post Reply