Anim8or Community

General Category => ASL Scripts => Topic started by: davdud101 on June 20, 2012, 07:16:13 pm

Title: Script Request!
Post by: davdud101 on June 20, 2012, 07:16:13 pm
Hey, everyone! A friend of mine and myself are working on a live-action and animation-crossed short film. We're using Anim8or to do it, but we're planning on having tons (parhaps hundreds) of a single of object in a scene at one time. We pretty much need them to do these two things (seperately)

1) Move up and down independently on the y-axis
2) All flow towards one point (object, target, etc.)

I know, it sounds quite overwhelming of a task, but we definetly won't be able to hand-animate every single on of the little guys.
Anyone willing to take up the offer, gain some scripting experience, and get a screen credit?
Title: Re: Script Request!
Post by: dwsel on June 21, 2012, 03:28:30 pm
Can you post more detailed requirements or example video of similar thing (should they move up and down in sync/randomly; should they change direction towards the aim?).
If you want to need a script to make something like that:


(without self collision of objects) then it shouldn't be difficult and time consuming to script similar behavior.
Title: Re: Script Request!
Post by: dwsel on June 27, 2012, 12:25:57 pm
I scripted behaviour similar to boids.


The key is to animate target path with mathematical expression or with the array of locations, then copy the expression or array to each object position scrip and loop for every frame. I don't know if there's any possibility to store parameters across the frames. That would simplify this script.
Title: Re: Script Request!
Post by: dwsel on June 27, 2012, 05:10:00 pm
More boids - fishes in water:


This time target is guided with coordinates stored in array. I wonder is it possible to read files with ASL especially in the animation controller ???
Title: Re: Script Request!
Post by: davdud101 on July 10, 2012, 07:55:33 am
Whoa, dwsel, looks like you're making a ton of progress! Thanks for the work you're putting in. So to be pretty exact, in the bobbing motions I'd want them to be random, moving at their own pace, distance, and starting point. I guess I'll have to look a little more into the flocking and stuff, but what you've got looks good so far! Thanks again!