-
Can I access (and animate) objects inside particles using xpresso?
Hello,
The ultimate result I’m after is to have a field of randomly positioned bool objects. Each bool object is set to ‘A minus B’. Inside each one there are two objects, their initial state is that the ‘masking’ object completely overlaps the masked object, making it invisible. The masking objects should move upwards revealing the masked objects. These ‘reveal’ animations should be randomly staggered, giving the effect that more and more objects reveal themselves in this way as time progresses.
I’ve been trying to achieve this using thinking particles, but without success so far.
Here’s what I’ve done:
I set up a bool object with a ‘Reveal’ user data variable. The Reveal variable controls the Y position of the masking object inside the bool.
I set up a thinking particles Particle Storm emitter which generates these bool objects at random positions. This works as expected.
What I wanted to do next, but what I’m stuck with, is to use xpresso to have the age of a particle drive the ‘Reveal’ user data on the bool objects, so that by the time a particle is X frames old, the masked object inside the bool has been fully revealed.
Specifically, I can’t figure out how to access the child objects of an object that’s being used as a particle, when I’m accessing the particle with the P Pass node (is there another way?). I’d like to access and animate the Reveal user data that I’ve added to my bool object using xpresso.
Any help/suggestions most welcome!