Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: Script Request!  (Read 11447 times)

davdud101

  • Hero Member
  • *****
  • Posts: 1067
  • Couldn't ever use Blender or Maya. Anim8or's good.
    • View Profile
Script Request!
« on: June 20, 2012, 03: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?
Logged
?

dwsel

  • Sr. Member
  • ****
  • Posts: 271
    • View Profile
    • Dwsel art
Re: Script Request!
« Reply #1 on: June 21, 2012, 11:28:30 am »

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.
Logged

dwsel

  • Sr. Member
  • ****
  • Posts: 271
    • View Profile
    • Dwsel art
Re: Script Request!
« Reply #2 on: June 27, 2012, 08:25:57 am »

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.
Logged

dwsel

  • Sr. Member
  • ****
  • Posts: 271
    • View Profile
    • Dwsel art
Re: Script Request!
« Reply #3 on: June 27, 2012, 01: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 ???
Logged

davdud101

  • Hero Member
  • *****
  • Posts: 1067
  • Couldn't ever use Blender or Maya. Anim8or's good.
    • View Profile
Re: Script Request!
« Reply #4 on: July 10, 2012, 03: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!
Logged
?