How to clear a pwindow?

okyeron's icon

I did some searching but could not find a solution for this.

I have jit.grab wired to a pwindow. Works great to grab video from my built-in iSight camera. However, when I stop the jit.grab, the pwindow continues to display the last frame captured. How can I clear that pwindow? I tried sending clear to jit.grab, but it had no effect on the pwindow.

I can replicate this behavior in the jit.grab help patcher. Open the component, toggle qmetro, close the component and the pwindow shows the last frame. The clear button does not clear the pwindow.

I must be missing something simple here. Any help?

Rajan Craveri's icon

simply send a black jit.matrix to pwindow

okyeron's icon

OK - could you describe the "simply" part? (I'm still a newb at this)

Shouldn't "clear" in jit.grab or jit.matrix (setting all matrix values to zero) have the same effect?

Rajan Craveri's icon
Max Patch
Copy patch and select New From Clipboard in Max.
okyeron's icon

micron, thank you for the example.

A problem though -- when the toggle is "on" the last frame from jit.grab continues to be sent to the pwindow. The frame goes black only when toggled "off".

On further testing, I guess I'm confused by "clear" in jit.grab only being effective when the component is open, but does nothing after the component is closed.

Rajan Craveri's icon
Max Patch
Copy patch and select New From Clipboard in Max.
okyeron's icon

Thanks again for the example. This works great.

So the "gate" is used to send metro to jit.qt.grab only when the component is open?

Now to see if this approach will work in my patch.

schtuu's icon

hi,

i have a similiar problem. the difference is that i have jit.lcd with a paintpoly and linesegment to get coordinates from a kinect. the problem is that the last polygon or line drawn remains even when there is no input information.

thanks for help!

Rajan Craveri's icon

please post the part of your patch with the problem

schtuu's icon

----------begin_max5_patcher----------
{
    "boxes" : [         {
            "box" :             {
                "maxclass" : "number",
                "fontname" : "Arial",
                "id" : "obj-188",
                "patching_rect" : [ 891.389465, 649.0, 50.0, 20.0 ],
                "numinlets" : 1,
                "parameter_enable" : 0,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "int", "bang" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "pak 0 0",
                "fontname" : "Arial",
                "id" : "obj-90",
                "patching_rect" : [ 1449.0, 705.0, 50.0, 20.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "t b i",
                "fontname" : "Arial",
                "id" : "obj-87",
                "patching_rect" : [ 1329.839966, 818.602539, 32.5, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "bang", "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "+ 10",
                "fontname" : "Arial",
                "id" : "obj-84",
                "patching_rect" : [ 1504.0, 798.602539, 34.0, 20.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "+ 10",
                "fontname" : "Arial",
                "id" : "obj-83",
                "patching_rect" : [ 1417.0, 798.602539, 34.0, 20.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "pack paintoval 0 0 0 0",
                "fontname" : "Arial",
                "id" : "obj-79",
                "patching_rect" : [ 1406.75, 940.53186, 127.0, 20.0 ],
                "numinlets" : 5,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "-10",
                "fontname" : "Arial",
                "id" : "obj-68",
                "patching_rect" : [ 1454.0, 798.602539, 32.5, 20.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "unpack 0 0",
                "fontname" : "Arial",
                "id" : "obj-67",
                "patching_rect" : [ 1387.0, 745.0, 69.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "int", "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "-10",
                "fontname" : "Arial",
                "id" : "obj-17",
                "patching_rect" : [ 1423.0, 844.757324, 32.5, 20.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "number",
                "fontname" : "Arial",
                "id" : "obj-167",
                "patching_rect" : [ 975.389465, 567.0, 50.0, 20.0 ],
                "numinlets" : 1,
                "parameter_enable" : 0,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "int", "bang" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "number",
                "fontname" : "Arial",
                "id" : "obj-166",
                "patching_rect" : [ 975.389465, 514.0, 50.0, 20.0 ],
                "numinlets" : 1,
                "parameter_enable" : 0,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "int", "bang" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "3",
                "fontname" : "Arial",
                "id" : "obj-137",
                "patching_rect" : [ 529.75, 655.768127, 32.5, 18.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "2",
                "fontname" : "Arial",
                "id" : "obj-139",
                "patching_rect" : [ 498.75, 655.768127, 32.5, 18.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "1",
                "fontname" : "Arial",
                "id" : "obj-140",
                "patching_rect" : [ 463.25, 655.768127, 32.5, 18.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "route 1 2 3",
                "fontname" : "Arial",
                "id" : "obj-141",
                "patching_rect" : [ 463.25, 635.768127, 68.0, 20.0 ],
                "numinlets" : 4,
                "fontsize" : 12.0,
                "numoutlets" : 4,
                "outlettype" : [ "", "", "", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "zl len",
                "fontname" : "Arial",
                "id" : "obj-142",
                "patching_rect" : [ 483.25, 591.768127, 39.0, 20.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "gate 3",
                "fontname" : "Arial",
                "id" : "obj-121",
                "patching_rect" : [ 523.0, 702.445862, 46.0, 20.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 3,
                "outlettype" : [ "", "", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "pack 0 0 0 0 0 0",
                "fontname" : "Arial",
                "id" : "obj-118",
                "patching_rect" : [ 742.663086, 746.585754, 96.0, 20.0 ],
                "numinlets" : 6,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "unpack 0 0 0",
                "fontname" : "Arial",
                "id" : "obj-119",
                "patching_rect" : [ 769.663086, 713.010803, 79.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 3,
                "outlettype" : [ "int", "int", "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "unpack 0 0 0",
                "fontname" : "Arial",
                "id" : "obj-120",
                "patching_rect" : [ 655.0, 713.010803, 79.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 3,
                "outlettype" : [ "int", "int", "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "3",
                "fontname" : "Arial",
                "id" : "obj-117",
                "patching_rect" : [ 794.0, 624.53186, 32.5, 18.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "2",
                "fontname" : "Arial",
                "id" : "obj-115",
                "patching_rect" : [ 752.75, 628.53186, 32.5, 18.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "1",
                "fontname" : "Arial",
                "id" : "obj-113",
                "patching_rect" : [ 712.0, 628.53186, 32.5, 18.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "gate 3",
                "fontname" : "Arial",
                "id" : "obj-107",
                "patching_rect" : [ 742.663086, 673.299988, 46.0, 20.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 3,
                "outlettype" : [ "", "", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "route 1 2 3",
                "fontname" : "Arial",
                "id" : "obj-105",
                "patching_rect" : [ 712.0, 591.0, 68.0, 20.0 ],
                "numinlets" : 4,
                "fontsize" : 12.0,
                "numoutlets" : 4,
                "outlettype" : [ "", "", "", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "zl len",
                "fontname" : "Arial",
                "id" : "obj-94",
                "patching_rect" : [ 732.0, 547.0, 39.0, 20.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.window",
                "fontname" : "Arial",
                "id" : "obj-210",
                "patching_rect" : [ 1235.5, 997.0, 63.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "bang", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "fullscreen $1",
                "fontname" : "Arial",
                "id" : "obj-205",
                "patching_rect" : [ 1235.5, 953.53186, 68.0, 15.0 ],
                "numinlets" : 2,
                "fontsize" : 9.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "toggle",
                "id" : "obj-206",
                "patching_rect" : [ 1146.5, 932.53186, 15.0, 15.0 ],
                "numinlets" : 1,
                "parameter_enable" : 0,
                "numoutlets" : 1,
                "outlettype" : [ "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "sel 27",
                "fontname" : "Arial",
                "id" : "obj-207",
                "patching_rect" : [ 1260.5, 928.53186, 35.0, 17.0 ],
                "numinlets" : 2,
                "fontsize" : 9.0,
                "numoutlets" : 2,
                "outlettype" : [ "bang", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "keyup",
                "fontname" : "Arial",
                "id" : "obj-208",
                "patching_rect" : [ 1218.5, 928.53186, 40.0, 17.0 ],
                "numinlets" : 0,
                "fontsize" : 9.0,
                "numoutlets" : 4,
                "outlettype" : [ "int", "int", "int", "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "jit.pwindow",
                "id" : "obj-138",
                "patching_rect" : [ 683.0, 902.53186, 160.0, 120.0 ],
                "numinlets" : 1,
                "numoutlets" : 2,
                "outlettype" : [ "", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "linesegment 0 0 86 72",
                "fontname" : "Arial",
                "id" : "obj-136",
                "patching_rect" : [ 151.0, 804.640015, 154.0, 19.0 ],
                "numinlets" : 2,
                "fontsize" : 13.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "number",
                "minimum" : 1,
                "fontname" : "Arial",
                "maximum" : 10,
                "id" : "obj-134",
                "patching_rect" : [ 660.0, 780.179993, 50.0, 20.0 ],
                "numinlets" : 1,
                "parameter_enable" : 0,
                "fontsize" : 11.595187,
                "numoutlets" : 2,
                "outlettype" : [ "int", "bang" ],
                "triscale" : 0.9
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "pensize $1 $1",
                "fontname" : "Arial",
                "id" : "obj-135",
                "patching_rect" : [ 660.0, 862.5672, 92.0, 19.0 ],
                "numinlets" : 2,
                "fontsize" : 13.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "brgb 100 0",
                "fontname" : "Arial",
                "id" : "obj-126",
                "patching_rect" : [ 398.199341, 971.53186, 68.0, 18.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.matrix 4 char 160 120",
                "fontname" : "Arial",
                "id" : "obj-127",
                "patching_rect" : [ 509.221008, 839.691101, 139.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "jit_matrix", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "0",
                "fontname" : "Arial",
                "id" : "obj-128",
                "patching_rect" : [ 365.69928, 821.975464, 32.5, 18.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "t b b b",
                "fontname" : "Arial",
                "id" : "obj-129",
                "patching_rect" : [ 480.809875, 799.757324, 46.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 3,
                "outlettype" : [ "bang", "bang", "bang" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "frgb 255 255 255",
                "fontname" : "Arial",
                "id" : "obj-130",
                "patching_rect" : [ 297.19928, 957.0, 101.0, 18.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "prepend linesegment",
                "fontname" : "Arial",
                "id" : "obj-132",
                "patching_rect" : [ 222.0, 753.602539, 123.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.lcd 4 char 160 120",
                "fontname" : "Arial",
                "id" : "obj-133",
                "patching_rect" : [ 472.0, 879.304626, 121.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "jit_matrix", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "paintpoly 54 23 87 72 65 73",
                "fontname" : "Arial",
                "id" : "obj-102",
                "patching_rect" : [ 870.781006, 821.975464, 192.0, 18.0 ],
                "numinlets" : 2,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "prepend paintpoly",
                "fontname" : "Arial",
                "id" : "obj-100",
                "patching_rect" : [ 900.281006, 773.602539, 106.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "pack 0 0 0 0",
                "fontname" : "Arial",
                "id" : "obj-97",
                "patching_rect" : [ 343.0, 773.602539, 76.0, 20.0 ],
                "numinlets" : 4,
                "fontsize" : 12.0,
                "numoutlets" : 1,
                "outlettype" : [ "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "unpack 0 0",
                "fontname" : "Arial",
                "id" : "obj-96",
                "patching_rect" : [ 480.809875, 762.190979, 69.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "int", "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "unpack 0 0",
                "fontname" : "Arial",
                "id" : "obj-95",
                "patching_rect" : [ 243.0, 650.320007, 69.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "int", "int" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.spill",
                "fontname" : "Arial",
                "id" : "obj-89",
                "patching_rect" : [ 616.0, 567.0, 43.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.spill",
                "fontname" : "Arial",
                "id" : "obj-86",
                "patching_rect" : [ 550.0, 605.0, 43.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.unpack 3",
                "fontname" : "Arial",
                "id" : "obj-85",
                "patching_rect" : [ 504.0, 558.0, 71.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 4,
                "outlettype" : [ "jit_matrix", "jit_matrix", "jit_matrix", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "cv.jit.erode",
                "fontname" : "Arial",
                "id" : "obj-73",
                "patching_rect" : [ 342.5, 561.0, 68.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "jit_matrix", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "cv.jit.dilate",
                "fontname" : "Arial",
                "id" : "obj-72",
                "patching_rect" : [ 417.0, 597.0, 66.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "jit_matrix", "" ]
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "cv.jit.erode",
                "fontname" : "Arial",
                "id" : "obj-71",
                "patching_rect" : [ 292.0, 597.0, 68.0, 20.0 ],
                "numinlets" : 1,
                "fontsize" : 12.0,
                "numoutlets" : 2,
                "outlettype" : [ "jit_matrix", "" ]
            }

        }
],
    "lines" : [         {
            "patchline" :             {
                "source" : [ "obj-166", 0 ],
                "destination" : [ "obj-90", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-167", 0 ],
                "destination" : [ "obj-90", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-121", 0 ],
                "destination" : [ "obj-167", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-102", 0 ],
                "destination" : [ "obj-133", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-118", 0 ],
                "destination" : [ "obj-188", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-97", 0 ],
                "destination" : [ "obj-132", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-96", 0 ],
                "destination" : [ "obj-97", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-96", 1 ],
                "destination" : [ "obj-97", 3 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-95", 0 ],
                "destination" : [ "obj-97", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-95", 1 ],
                "destination" : [ "obj-97", 2 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-94", 0 ],
                "destination" : [ "obj-105", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-90", 0 ],
                "destination" : [ "obj-67", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-89", 0 ],
                "destination" : [ "obj-94", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-89", 0 ],
                "destination" : [ "obj-107", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-87", 0 ],
                "destination" : [ "obj-79", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-87", 1 ],
                "destination" : [ "obj-17", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-86", 0 ],
                "destination" : [ "obj-142", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-86", 0 ],
                "destination" : [ "obj-121", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-85", 1 ],
                "destination" : [ "obj-89", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-85", 0 ],
                "destination" : [ "obj-86", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-84", 0 ],
                "destination" : [ "obj-79", 4 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-83", 0 ],
                "destination" : [ "obj-79", 3 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-79", 0 ],
                "destination" : [ "obj-133", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-73", 0 ],
                "destination" : [ "obj-72", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-71", 0 ],
                "destination" : [ "obj-73", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-68", 0 ],
                "destination" : [ "obj-79", 2 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-67", 0 ],
                "destination" : [ "obj-87", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-67", 1 ],
                "destination" : [ "obj-84", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-67", 0 ],
                "destination" : [ "obj-83", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-67", 1 ],
                "destination" : [ "obj-68", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-208", 0 ],
                "destination" : [ "obj-207", 0 ],
                "hidden" : 0,
                "midpoints" : [ 1259.5, 945.53186, 1259.5, 930.53186 ],
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-207", 0 ],
                "destination" : [ "obj-206", 0 ],
                "hidden" : 0,
                "midpoints" : [ 1270.0, 929.53186, 1155.5, 929.53186 ],
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-206", 0 ],
                "destination" : [ "obj-205", 0 ],
                "hidden" : 0,
                "midpoints" : [ 1162.5, 947.53186, 1162.5, 932.53186 ],
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-205", 0 ],
                "destination" : [ "obj-210", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-17", 0 ],
                "destination" : [ "obj-79", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-142", 0 ],
                "destination" : [ "obj-141", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-141", 0 ],
                "destination" : [ "obj-140", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-141", 1 ],
                "destination" : [ "obj-139", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-141", 2 ],
                "destination" : [ "obj-137", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-140", 0 ],
                "destination" : [ "obj-121", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-139", 0 ],
                "destination" : [ "obj-121", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-138", 0 ],
                "destination" : [ "obj-210", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-137", 0 ],
                "destination" : [ "obj-121", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-136", 0 ],
                "destination" : [ "obj-133", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-135", 0 ],
                "destination" : [ "obj-133", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-134", 0 ],
                "destination" : [ "obj-135", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-133", 0 ],
                "destination" : [ "obj-138", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-132", 0 ],
                "destination" : [ "obj-136", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-130", 0 ],
                "destination" : [ "obj-133", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-129", 2 ],
                "destination" : [ "obj-136", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-129", 0 ],
                "destination" : [ "obj-133", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-129", 1 ],
                "destination" : [ "obj-127", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-129", 2 ],
                "destination" : [ "obj-102", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-128", 0 ],
                "destination" : [ "obj-133", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-127", 0 ],
                "destination" : [ "obj-133", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-126", 0 ],
                "destination" : [ "obj-133", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-121", 1 ],
                "destination" : [ "obj-95", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-121", 2 ],
                "destination" : [ "obj-120", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-120", 0 ],
                "destination" : [ "obj-118", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-120", 1 ],
                "destination" : [ "obj-118", 2 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-120", 2 ],
                "destination" : [ "obj-118", 4 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-119", 0 ],
                "destination" : [ "obj-118", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-119", 1 ],
                "destination" : [ "obj-118", 3 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-119", 2 ],
                "destination" : [ "obj-118", 5 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-118", 0 ],
                "destination" : [ "obj-100", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-117", 0 ],
                "destination" : [ "obj-107", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-115", 0 ],
                "destination" : [ "obj-107", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-113", 0 ],
                "destination" : [ "obj-107", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-107", 1 ],
                "destination" : [ "obj-96", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-107", 0 ],
                "destination" : [ "obj-166", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-107", 2 ],
                "destination" : [ "obj-119", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-105", 2 ],
                "destination" : [ "obj-117", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-105", 1 ],
                "destination" : [ "obj-115", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-105", 0 ],
                "destination" : [ "obj-113", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-100", 0 ],
                "destination" : [ "obj-102", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
],
    "appversion" :     {
        "major" : 6,
        "minor" : 1,
        "revision" : 6,
        "architecture" : "x86"
    }

}
-----------end_max5_patcher-----------

Rajan Craveri's icon

I have some problem to open your patch, can you use the "copy compressed" function?

schtuu's icon
Max Patch
Copy patch and select New From Clipboard in Max.
schtuu's icon

is it ok? are you coming cope?

Rajan Craveri's icon

It is difficult to understand this patch,
but I think that only a gate it's not enough because your messages "linesegment" and "paintpoly" are banged with the last values.