Idle Animations


Idle Actions are one of the key tools to making a 3D product come to life in IMVU. An Idle Action is the default action for a 3D product. It is the type of Action that plays without needing any input from a person. This functionality allows Waves to always move in a Room product, a Magic Pillow seat to Float up and down forever, a Pet cupid to always Flap its Wings and an Avatar to shift position on its own.

Avatars, Pets, Furniture and Rooms can all use Idle Animations.

This tutorial covers how to use a Create Mode Editor to assemble pre-Exported Assets into Idle Actions. However, it does not cover how to build those Assets. If you want to learn how to build Animations, please consult the following tutorials:

Skeletal Animations
Morph Animations
Rooms Introduction
Accessories Introduction
Furniture Introduction
Create Mode Introduction






What Products Can Contain Idles?

Any 3D product can contain Idle Actions. However, they are most common in Avatars, Pets, Rooms and Furniture.


The most common Idle Animations in Pets, Rooms and Furniture are all named stance.Idle. If an Action has this name, then the IMVU code knows to play it without any input from a user.

The most common Idle Animations in the IMVU Avatar are the Standing and Sitting Animations. These Animations play when the Avatar is in a Seat Node that calls them by name *or*, as is the case with the Standing Idle, when the Avatar can not find an Animation to match what the Seat Node wants to play. For example, if a Seat Node is named seat01.FrogDance and neither the Room, Furniture, or Avatar actually contain an Action named stance.FrogDance, then the Avatar will play its default Idle animation: Standing.




The IMVU Action System

The following is a description of how the IMVU Action system works:


- An Action can include a single sound.

- An Action can also be a collection of one or more Ensembles and a few rules that the Ensembles follow.

- The Trigger name supplied in an Action dictates whether the action is an Idle or a Triggered action.

- An Ensemble contains the actual Animation assets and the rules that those Assets follow

- There can be multiple Actions of the same name. For example, there can be multiple Actions named stance.Idle

- There can be multiple Ensembles in each Action.

With the above system in place, you can build multiple Idle Animations, Export them all and then place them into an Editor. For example, typically you have one Action named stance.Idle that covers only the Blinking Animation. In this way, the Blink will play regardless of what else the Pet is doing. Also add another Action named stance.Idle that contains at least five Ensembles with Animations to a Pet so that it has a feeling of life.

Each Idle Animation should be saved into its own MAX file.



The Actions Tab

All Actions are found in the Actions tab in a Create Mode Editor. To learn more about the various tabs in the Editor, please consult the Create Mode Introduction tutorial.

To learn more about the details of the Actions Tab, please consult the Actions Tab Tutorial.


Below is an example of what the Actions Tab looks like when it has many Actions and the first Action has many Ensembles.




Random Acts

The Idle Animation utilizes Randomness. You will notice that your Avatar doesn't do the same thing in the same order all the time. This is because its Idle Action contains multiple Animations and plays them at random.


You can create this random behavior yourself by understanding some of the basic rules of the IMVU Action system:

- You can have multiple Ensembles in an Action
- You can tell the Action to choose those Ensembles randomly






Idle Names

There are three names to keep in mind when building an Idle Action:


stance.Idle - this name is often applied to Pets, Rooms and Furniture products. However, Pets also sometimes use the following two names instead of stance.Idle. stance.Idle tells the IMVU code to play this Action with no input from a user.

stance.Standing - this name is included in IMVU Avatars. The most commonly used Seat Node name in Rooms and Furniture, seat##.Standing, calls this Avatar Action by name. This Action is also the default Action name that the IMVU code looks for if no matching Actions are available within the IMVU Avatar.

stance.Sitting - this name is included in IMVU Avatars as seat##.Sitting is the *second* most commonly used Seat Node name in Rooms and Furniture.





Same Name

As mentioned above, you can have multiple Actions in one product. However, you can also have multiple Actions in one product with the same name. This means, for example, you can have multiple Actions named stance.Idle which, in turn, means that you can drive multiple, independent Animations at the same time.



IMVU uses this feature in many of its products as the addition of even a little random behavior goes a long way.




Blink

The avatar has a special Idle that is controlled by the IMVU code rather by an Action you under your full control. This special code Triggers an Action randomly if it is called Blink. The Blink Animations IMVU has made are very short Animations - no longer than a few frames. This makes the Blinks feel real when played in IMVU (and at random framerates on random computers.) This means that the Blink code has been tweaked to perform rapidly which, in turn, means that your Blink Animations ought to also be very short or they won't look right.






Loop Effects

As a reminder, any Animation Asset included in an Action can have loop effects applied to it regardless whether it is a Skeletal Animation - .xaf file or a Morph Animation .xpf file.

The loop settings in the Ensemble tell an Animation which portion it ought to play over and over and for how many times. While you can set a number of loops in the loop settings, you can also tell the Ensemble to randomly play more loops using the 'Extra # of loops (up to)' field.

Just type in any number and the Ensemble will randomly play up to that many loops whenever it plays. The goal with utilizing this feature is to get your Idle Action to feel as random/alive as possible.






Blending

One of the most important features of Idle Actions (and Actions in general) is Blending. This allows the currently playing Animation to Blend into the next Animation. Without using Blending, those two Animations would just pop as Action A stopped and Action B began.


Make sure to use a 'Blend in:' and 'out:' Weight of 5 frames. This allows the two Animations to Blend fairly quickly.

Blending doesn't work if the Ensembles that are meant to blend together do not have their 'Composition' set up correctly.





Composition

Idle Actions should always have their 'Composition' set to 'Average'. This allows Triggered Animations to replace the Bone Positions and Rotation (if those Triggered Animations are set to 'Replace', of course.)
If your Idle Action is set to 'Replace', then any other Actions you have set to 'Replace' will not actually replace anything.

© 2017 IMVU All rights reserved