Make a toggle blink


    Feb 05 2013 | 11:27 pm
    Hi,
    I was just wondering if there's a way to make a toggle blink a colour like a button can,
    Thanks Wendy

    • Feb 05 2013 | 11:29 pm
      {
      "boxes" : [ {
      "box" : {
      "maxclass" : "newobj",
      "text" : "p",
      "fontsize" : 12.0,
      "patching_rect" : [ 111.5, 176.0, 222.0, 20.0 ],
      "id" : "obj-19",
      "numinlets" : 0,
      "fontname" : "Arial",
      "numoutlets" : 0,
      "patcher" : {
      "fileversion" : 1,
      "appversion" : {
      "major" : 6,
      "minor" : 0,
      "revision" : 8
      }
      ,
      "rect" : [ 0.0, 0.0, 640.0, 480.0 ],
      "bglocked" : 0,
      "openinpresentation" : 0,
      "default_fontsize" : 12.0,
      "default_fontface" : 0,
      "default_fontname" : "Arial",
      "gridonopen" : 0,
      "gridsize" : [ 15.0, 15.0 ],
      "gridsnaponopen" : 0,
      "statusbarvisible" : 2,
      "toolbarvisible" : 1,
      "boxanimatetime" : 200,
      "imprint" : 0,
      "enablehscroll" : 1,
      "enablevscroll" : 1,
      "devicewidth" : 0.0,
      "description" : "",
      "digest" : "",
      "tags" : "",
      "boxes" : [ {
      "box" : {
      "maxclass" : "comment",
      "text" : "press Q on keyboard to switch toggle on.",
      "linecount" : 2,
      "fontsize" : 12.0,
      "frgb" : 0.0,
      "patching_rect" : [ 122.0, 144.0, 150.0, 33.0 ],
      "id" : "obj-18",
      "numinlets" : 1,
      "fontname" : "Arial",
      "numoutlets" : 0
      }
      }
      , {
      "box" : {
      "maxclass" : "attrui",
      "fontsize" : 13.0,
      "lock" : 1,
      "patching_rect" : [ 50.0, 100.0, 120.0, 21.0 ],
      "id" : "obj-4",
      "numinlets" : 1,
      "fontname" : "Arial",
      "numoutlets" : 1,
      "attr" : "blinkcolor",
      "text_width" : 83.0,
      "outlettype" : [ "" ]
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "Q",
      "fontsize" : 32.0,
      "frgb" : 0.0,
      "patching_rect" : [ 133.0, 272.5, 37.0, 42.0 ],
      "id" : "obj-5",
      "numinlets" : 1,
      "fontname" : "Arial",
      "numoutlets" : 0
      }
      }
      , {
      "box" : {
      "maxclass" : "toggle",
      "bgcolor" : [ 1.0, 0.8, 0.4, 1.0 ],
      "checkedcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
      "patching_rect" : [ 122.0, 264.0, 59.0, 59.0 ],
      "id" : "obj-1",
      "numinlets" : 1,
      "parameter_enable" : 0,
      "numoutlets" : 1,
      "outlettype" : [ "int" ],
      "bordercolor" : [ 0.0, 0.0, 0.0, 1.0 ]
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "select 81",
      "fontsize" : 12.0,
      "patching_rect" : [ 122.0, 238.0, 59.0, 20.0 ],
      "id" : "obj-2",
      "numinlets" : 2,
      "fontname" : "Arial",
      "numoutlets" : 2,
      "outlettype" : [ "bang", "" ]
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "key",
      "fontsize" : 12.0,
      "patching_rect" : [ 122.0, 210.0, 59.5, 20.0 ],
      "id" : "obj-3",
      "numinlets" : 0,
      "fontname" : "Arial",
      "numoutlets" : 4,
      "outlettype" : [ "int", "int", "int", "int" ]
      }
      }
      ],
      "lines" : [ {
      "patchline" : {
      "source" : [ "obj-2", 0 ],
      "destination" : [ "obj-1", 0 ],
      "hidden" : 0,
      "disabled" : 0
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-3", 0 ],
      "destination" : [ "obj-2", 0 ],
      "hidden" : 0,
      "disabled" : 0
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-4", 0 ],
      "destination" : [ "obj-1", 0 ],
      "hidden" : 0,
      "disabled" : 0
      }
      }
      ]
      }
      ,
      "saved_object_attributes" : {
      "default_fontface" : 0,
      "default_fontname" : "Arial",
      "default_fontsize" : 12.0,
      "description" : "",
      "digest" : "",
      "fontface" : 0,
      "fontname" : "Arial",
      "fontsize" : 12.0,
      "globalpatchername" : "",
      "tags" : ""
      }
      }
      }
      ],
      "appversion" : {
      "major" : 6,
      "minor" : 0,
      "revision" : 8
      }
      }
    • Feb 06 2013 | 2:12 am
      Or maybe this for a true momentary blink.
    • Feb 06 2013 | 4:14 am
      there's no attribute 'blinkcolor" for a toggle. use bgcolor instead:
      or:
    • Feb 07 2013 | 5:08 am
      you can also use the led object
    • Feb 09 2013 | 6:51 pm
      Thanks everyone your help :) it has really help me.
      Is the a way to change the colour of the blink, to green for example, if so is there a list with all the number colour on.
      Thanks Wendy