Exemplo n.º 1
0
 public void Initialize(VRMBlendShapeProxy proxy)
 {
     _allBlendShapeKeys = proxy
                          .BlendShapeAvatar
                          .Clips
                          .Select(c => BlendShapeKeyFactory.CreateFrom(c.BlendShapeName))
                          .ToArray();
 }
Exemplo n.º 2
0
        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);
                }
            });
        }