-
Random seed for noise in iteration
First of all, let me say hello! I just signed up on the forums and this is my first post. But surfing answers here has already taught me alot.
Here’s the project:
A coworker of mine has set up a field of objects. A few hundred square splines under a heirarchal extrude nurbs. She wants them to move up and down randomly and to be able to pause their motion and then restart it. Essentially, one set of keyframes to handle hundreds of objects. The ideal solution would be Mograph, I know, but our shop doesn’t have it yet. I’m trying to come up with an alternative solution that is less tedious than keyframing every object.What I’ve tried so far:
I’m experimenting with a set of five objects so I can move more quickly than dealing with the final scene.First up was to give Vibrate a shot.I dropped one on each object, and adjusted the seed for each one. The motion worked fine, though I had to drop every object in a null to keep it from centering them to the world origin. But Starting and stopping the animation created a jump where the vibrate tag adjusts to the time, so unless I can fix that, it’s out.
I’m currently working with Xpresso to try and get a better result. I have an ObjectList node feeding the list of objects, so as to not have to set this up over and over again. The position.y of the object is being fed by a noise node, whose amplitude is controlled by userdata set up on the object holding the xpresso tag. This gives me a uniform motion that is definitely the beginnings of what we need.
Where I’m Stuck:
The up and down motion is fine, but I need each object to calculate with a different random seed so that they aren’t all moving in the same direction at the same time. I’ve tried to connect several things to the seed value of the noise node, but haven’t found anything that works right.The second issue is pausing and starting the movement via keyframe. Frankly, I’m not sure how to set up Xpresso to do this.
Help would be greatly appreciated.
Thanks!