User Tools

Site Tools


iceee:development:scriptedanimation

This is an old revision of the document!


Scripted Animation

* Initiated with a single server side script code that takes a Prop ID and Sequence * Each sequence consists of multiple Frames that run for a specified Duration. When the duration is reached, the sequence moves on to the next frame until there are no more frames. * Each frame consists of one or more Transforms. Multiple transforms within a single frame all run in parallel.

Sequence Structure

A sequence structure is a Squirrel table made up of nested arrays, tables and primitives.

```

{

  frames = 
      [            
          // Frame 1
          {
              duration = ..,
              transforms = 
              [
                  // Transform 1
                  {
                  ....
                  },
                  
                  // Transform 2
                  ....
              ]                
          },
          // Frame 2
          ....
      ],
      
      ....

}

```

Transformation Types

Scale

Rotate

Translate

Goto

```

```

iceee/development/scriptedanimation.1433926555.txt.gz · Last modified: 2015/06/10 09:55 by emerald