Exemple #1
0
        void InitializeLinkControl(LAMaskPoseControlConstructionParams csParam)
        {
            mBasePoseLinkHandle             = BasePoseHandle;
            mMaskLinkHandle                 = MaskHandle;
            mAlphaValueLinkHandle           = AlphaValueHandle;
            mOutLinkHandle                  = OutPoseHandle;
            mBasePoseLinkHandle.MultiLink   = false;
            mMaskLinkHandle.MultiLink       = false;
            mAlphaValueLinkHandle.MultiLink = false;
            mOutLinkHandle.MultiLink        = false;

            mBasePoseLinkHandle.NameStringVisible = Visibility.Visible;
            mBasePoseLinkHandle.NameString        = "BasePose";
            mMaskLinkHandle.NameStringVisible     = Visibility.Visible;
            mMaskLinkHandle.NameString            = "Mask";
            //mAdditiveLinkHandle.NameStringVisible = Visibility.Visible;
            //mAdditiveLinkHandle.NameString = "AdditivePose";
            mAlphaValueLinkHandle.NameStringVisible = Visibility.Visible;
            mAlphaValueLinkHandle.NameString        = "Alpha";
            AlphaValueTextBlock.Visibility          = Visibility.Visible;
            mAlphaValueLinkHandle.OnAddLinkInfo    += WeightValueLinkHandle_OnAddLinkInfo;
            mAlphaValueLinkHandle.OnDelLinkInfo    += WeightValueLinkHandle_OnDelLinkInfo;
            AddLinkPinInfo("BasePoseLinkHandle", mBasePoseLinkHandle, null);
            AddLinkPinInfo("MaskLinkHandle", mMaskLinkHandle, null);
            AddLinkPinInfo("AlphaValueLinkHandle", mAlphaValueLinkHandle, null);
            AddLinkPinInfo("OutLinkHandle", mOutLinkHandle, null);
        }
Exemple #2
0
        public LAMaskPoseControl(LAMaskPoseControlConstructionParams csParam)
            : base(csParam)
        {
            InitConstruction();
            NodeName = csParam.NodeName;
            Alpha    = csParam.Alpha;
            BindingTemplateClassInstanceProperties();

            IsOnlyReturnValue = true;
            InitializeLinkControl(csParam);
        }