Example #1
0
        //this method is called by vvvv when the node is created
        public override void SetPluginHost(IPluginHost Host)
        {
            base.SetPluginHost(Host);

            //create inputs:

            //value
            //correct subtype of value pin
            FValueIn.SetSubType(0, 1, 1, 0, false, true, false);
            FValueOut.SetSubType(0, 1, 1, 0, false, true, false);
        }
Example #2
0
        //this method is called by vvvv when the node is created
        public override void SetPluginHost(IPluginHost Host)
        {
            base.SetPluginHost(Host);

            //create inputs:

            //value
            //correct subtype of value pin
            FValueIn.SetSubType(0, 1, 0.01, 0, false, false, false);

            //color

            FHost.CreateValueInput("Slider Speed", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSliderSpeedIn);
            FSliderSpeedIn.SetSubType(0, double.MaxValue, 0.01, 0.25, false, false, false);

            FHost.CreateTransformOutput("Slider Transform", TSliceMode.Dynamic, TPinVisibility.True, out FPinOutSliderTransform);
        }
Example #3
0
        //this method is called by vvvv when the node is created
        public override void SetPluginHost(IPluginHost Host)
        {
            base.SetPluginHost(Host);

            //create inputs:

            //value
            //correct subtype of value pin
            FValueIn.SetSubType(0, 1, 0.01, 0, false, false, false);
            FInternalValueConfig.SetSubType(0, 1, 0.01, 0, false, false, false);

            //color
            FHost.CreateColorInput("Slider Color", TSliceMode.Dynamic, TPinVisibility.True, out FSliderColorIn);
            FSliderColorIn.SetSubType(new RGBAColor(1, 1, 1, 1), true);

            FHost.CreateValueInput("Slider Speed", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSliderSpeedIn);
            FSliderSpeedIn.SetSubType(0, double.MaxValue, 0.01, 0.25, false, false, false);
        }