ParelVRDocs
Player site

Creators / Avatars

Expressions and parameters

Toggles, radial menus and animations driven by parameters.

An avatar's Expressions are two assets you set on its descriptor, plus animator controllers that read them.

Expression Parameters#

Create > ParelVR > Expression Parameters. Each parameter has:

Field Meaning
Name The name your animators use.
Type Bool, Int (0 to 255) or Float (-1 to 1).
Default Its value when the avatar is first worn.
Saved Remembered between sessions.
Synced Sent to other players.

Synced parameters share a 256-bit budget: a Bool costs 1 bit, an Int or Float 8 bits. The inspector shows the total. Parameters that only matter to you (for example, menu state) can be unsynced and cost nothing.

Expressions Menu#

Create > ParelVR > Expressions Menu. This is what players see in the radial menu's Expressions section. Each control drives a parameter:

Control Drives
Toggle Sets a value while on.
Button Sets a value while held.
Sub Menu Opens another Expressions Menu.
Radial Puppet One float from a dial.
Two Axis Puppet Two floats from a stick.
Four Axis Puppet Four floats from a stick, one per direction.

Playable layers#

The descriptor has slots for animator controllers, each for one kind of animation:

Layer Use it for
Base Walking, running, jumping, falling.
Additive Breathing and other movement added on top.
Gesture Hand poses from gestures.
Action Full-body emotes.
FX Everything else: toggles, blend shapes, materials, faces. Most of your work goes here.
Sitting Poses in seats.

Add your parameters to the controllers that read them. Contact Receivers have a button that does this for you.

Built-in parameters#

ParelVR sets these on every avatar. Add one to your controller with the same name and type to read it.

Parameter Type Value
IsLocal Bool True on the wearer's own client.
Viseme Int The current viseme, 0 to 14.
Voice Float How loud the wearer is talking.
GestureLeft, GestureRight Int 0 to 7, see Gestures.
GestureLeftWeight, GestureRightWeight Float How far the trigger is pulled.
VelocityX, VelocityY, VelocityZ Float Movement speed on each axis.
VelocityMagnitude Float Overall speed.
AngularY Float Turning speed.
Upright Float 1 standing, lower when crouching or lying down.
Grounded Bool Standing on something.
Seated Bool In a seat.
InStation Bool In a station.
AFK Bool The player is away.
TrackingType Int How the player is tracked (desktop, headset and hands, full body).
VRMode Int 1 in VR, 0 on desktop.
MuteSelf Bool The wearer's microphone is muted.
Earmuffs Bool The wearer has earmuffs on.
IsOnFriendsList Bool The viewer is friends with the wearer.
ScaleModified Bool The wearer changed the avatar's size.
ScaleFactor, ScaleFactorInverse Float The size change and its inverse.
EyeHeightAsMeters, EyeHeightAsPercent Float The avatar's eye height.
AvatarVersion Int The avatar format version.
IsAnimatorEnabled Bool The animator is running.
PreviewMode Int 1 when shown on a pedestal or preview.

Animator behaviours#

State machine behaviours let a state do more than play a clip: set parameters, switch tracking off for a body part, turn locomotion off, play a sound, and more. See Animator behaviours.