5 Replies Latest reply on Nov 6, 2010 1:55 PM by kglad

    Recording actions as a script


      I'm trying to create snippets of animation that will be reproduceable.


      i.e. punch, walk one cycle, squat


      Eventually I want use external data to control how the character moves. For instance, reading in a text file and searching for keywords like "love" or "anger" and then creating a list of actions dependent on that data, like jump once for every "love" and walk one cycle for every "anger".


      Input: text file, Output: list of commands for the character


      Originally my plan was this:

      1) create motion presets

      2) write a script that would take in external data and call those motion presets based on the data



      It turns out that motion presets are pretty limited.  These motions (punch, walk, ect) recquire animating several parts of the character, so motion presets don't work well.


      It occured to me that all actions capable with the Flash GUI are probably possible to script in ActionScript.  Instead of using motion presets, I could have code snippets that would be called based on the input.


      Question 1: Is that true? Or are there some things you can't script? (like drawing perhaps)


      Question 2: If so, is there a way to record your actions in the GUI to a script?  I have limited experience in Maya, but this is something that is possible with that software.  You can open up a scripting window, use the GUI, and all the commands you executed show up in the window.


      Any advice in general for creating these reproduceable actions?


      Thanks so much for your help!!