ScenePresence presence = ... // get the ScenePresence object for the avatar Vector3 position = presence.Position;
ScenePresence presence = ... // get the ScenePresence object for the avatar Appearance appearance = presence.Appearance; appearance.SetParamValue("ShirtColor", Color.Red.ToArgb().ToString()); presence.Appearance = appearance;This example fetches the ScenePresence object for the avatar and retrieves its Appearance instance. It then modifies the `ShirtColor` parameter of the appearance by setting its value to a string representing the ARGB value of the color red. Finally, it sets the avatar's `Appearance` property to the modified appearance. Package library: The OpenSim.Region.Framework.Scenes namespace is part of the OpenSim.Framework assembly, which is included in the OpenSimulator server codebase.