Importing Gestures

Anim nodes can be imported from a smls file by right clicking on an Anim node and selecting:

This command imports all Anim nodes that exists in the file so you would generally want smls files that you use as gesture library files, to contain just one Anim node (one gesture).

The gesture file must have matching names for the part nodes that are referenced by the onFrame script.

Note, not all parts names need to match, only those parts that are referenced by the imported script, therefore typically, accessory parts would not be referenced in a gesture file.

Also care must be taken to ensure Interpolators being imported do not share the same name as Interpolators used else where in the scene. To avoid this problem always use one common name for a type of gesture when using the setUpAnimation feature.

For example, all "hello" gestures use "hello", all "likes" gestures use "likes" etc.

The import feature is straightforward enough but it is very easy to experiance problems arising from incompatible names. However if you follow these guidelines, few problems should be encountered:

  • 1/ All gesture library files should contain only one Anim per file.

  • 2/ Keep gesture library files in a specific folder designated to gestures to avoid confusion with other smls files.

  • 3/ Stick to a standard set of names for your parts that are used for animating.

  • 4/ Always use one common name for a type of gesture when using the setUpAnimation feature.

  • 5/ Rather than import using, "sibling above", "sibling below" or "children", try to use the "replace" sub menu, to avoid the possibility of Interpolator names being shared within the scene at any point in time.




Copyright © 2000-2006 Graham Perrett thyme@seamless3d.com