connector_targets = [ { "x":x+2, "y":y-2 },
{ "x":x+2, "y":y2-2 },
{ "x":x2-2, "y":y+2 },
{ "x":x2-2, "y":y2-2 },
{ "x":(x+x2)/2, "y":y }
]
shapes["rect2"]["x"] = x+w-35
shapes["rect2"]["y"] = y+h-35
shapes["rect2"]["w"] = 20
shapes["rect2"]["h"] = 20
if ( shapes["text"]["text"] == "1" ):
stencil = curLayer().firstStencil()
stencil.setText( "x:"+str(x)+" y:"+str(y) )
]]>