public void Initialize(VRMBlendShapeProxy proxy) { _allBlendShapeKeys = proxy .BlendShapeAvatar .Clips .Select(c => BlendShapeKeyFactory.CreateFrom(c.BlendShapeName)) .ToArray(); }
public void Initialize(IVRMLoadable vrmLoadable, IMessageReceiver receiver) { receiver.AssignCommandHandler( VmmCommands.FaceNeutralClip, c => { HasValidNeutralClipKey = !string.IsNullOrWhiteSpace(c.Content); if (HasValidNeutralClipKey) { NeutralClipKey = BlendShapeKeyFactory.CreateFrom(c.Content); } }); receiver.AssignCommandHandler( VmmCommands.FaceOffsetClip, c => { HasValidOffsetClipKey = !string.IsNullOrWhiteSpace(c.Content); if (HasValidOffsetClipKey) { OffsetClipKey = BlendShapeKeyFactory.CreateFrom(c.Content); } }); }