AvatarLayerExtended

From Virtual World Web Wiki
Jump to: navigation, search

Represents a modification layer on an avatar. These can be used to change clothing and attachment items and other properties.

  • This is a JavaScript visible object

Remarks [edit]

Properties

string Identifier {get;}
The layer's identifier
bool ResetBlendshapes {get; set;}
True if this layer should cause blendshapes from lower layers to be ignored

Methods

void AddTexture(Guid objectTypeID)
Adds a skin mode to this layer by adding the DOMTexture node stored in the specified object type as a child of the avatar's skin DOMMaterial.
void Clear()
Removes all hookpoint modifications on this layer (clothing / attachment items)
void ClearAll()
Removes all modifications of any kind from this layer.
void ClearTextures()
Clears any set skin mods from this layer.
void Empty(string hookpointPath)
Places a special item in the layer's hookpoint that is "empty" (naked), overriding clothing or attachments from lower layers with "nothing".
bool HasTexture(Guid objectTypeID)
Returns if a given skin mod exists on this layer. The skin mod must have been previously added by a call to AddTexture
void Remove(string hookpointPath)
Removes anything in the specified hookpoint on this layer
void RemoveProperties(string selector)
Removes any command to set or empty any properties on the specified node
void RemoveProperty(string selector, string propertyName)
Removes any command to set or empty the specified property on the specified node
void RemoveTexture(Guid objectTypeID)
Removes a skin mod from this layer. The skin mod must have been previously added by a call to AddTexture
void SetBlendshape(string name, float value)
Sets a blendshape override on this layer
void SetBlendshapes(BlendShapeInfo[] blenshapes)
Sets an array of blendshapes with one call
void SetPropertyBoolean(string selector, string propertyName, bool value)
Sets a named property on the specified node to the specified boolean value
void SetPropertyColor(string selector, string propertyName, Color32 value)
Sets a named property on the specified node to the specified Color32 value
void SetPropertyDouble(string selector, string propertyName, double value)
Sets a named property on the specified node to the specified double value
void SetPropertyEmpty(string selector, string propertyName)
Sets a named property on the specified node to be removed
void SetPropertyInt32(string selector, string propertyName, int value)
Sets a named property on the specified node to the specified int value
void SetPropertyInt64(string selector, string propertyName, long value)
Sets a named property on the specified node to the specified long value
void SetPropertyPoint3D(string selector, string propertyName, JSVector3 value)
Sets a named property on the specified node to the specified JSVector3 (Point3D) value
void SetPropertySingle(string selector, string propertyName, float value)
Sets a named property on the specified node to the specified float (single) value
void SetPropertyString(string selector, string propertyName, string value)
Sets a named property on the specified node to the specified string value
void Wear(string hookpointPath, Guid objectTypeID)
Places the specified object type in the specified hookpoint on this layer, overriding anything set in layers below.