pictctrl question

Aug 22, 2010 at 9:34pm

pictctrl question

I have a pictctrl toogle where the two inactive images are different. After the task is completed (answering a question), the button should go to inactive 1 state. My question is: does it send out a 1 or nothing at all?

{
“boxes” : [ {
"box" : {
"maxclass" : "newobj",
"text" : "pipe 4000",
"fontname" : "Arial",
"id" : "obj-9",
"fontsize" : 12.0,
"numinlets" : 2,
"numoutlets" : 1,
"patching_rect" : [ 191.0, 230.0, 63.0, 20.0 ],
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “set $1″,
“fontname” : “Arial”,
“id” : “obj-25″,
“fontsize” : 11.595187,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 120.0, 196.0, 40.0, 18.0 ],
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “1″,
“fontname” : “Arial”,
“id” : “obj-40″,
“fontsize” : 11.595187,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 142.0, 168.0, 41.0, 18.0 ],
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “0″,
“fontname” : “Arial”,
“id” : “obj-41″,
“fontsize” : 11.595187,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 106.0, 168.0, 33.0, 18.0 ],
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “pictctrl”,
“clickedimage” : 1,
“id” : “obj-66″,
“presentation_rect” : [ 207.0, 67.0, 100.0, 100.0 ],
“name” : “Button1-6×2.png”,
“numinlets” : 1,
“inactiveimage” : 1,
“numoutlets” : 1,
“patching_rect” : [ 32.0, 219.0, 61.0, 66.0 ],
“presentation” : 1,
“mode” : 1,
“outlettype” : [ "int" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “1″,
“fontname” : “Arial”,
“id” : “obj-67″,
“fontsize” : 12.0,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 56.0, 170.0, 32.5, 18.0 ],
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “0″,
“fontname” : “Arial”,
“id” : “obj-68″,
“fontsize” : 12.0,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 13.0, 171.0, 32.5, 18.0 ],
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “active $1″,
“fontname” : “Arial”,
“id” : “obj-69″,
“fontsize” : 12.0,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 33.0, 192.0, 59.0, 18.0 ],
“outlettype” : [ "" ]
}

}
],
“lines” : [ {
"patchline" : {
"source" : [ "obj-9", 0 ],
“destination” : [ "obj-40", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-9", 0 ],
“destination” : [ "obj-68", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-66", 0 ],
“destination” : [ "obj-9", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-68", 0 ],
“destination” : [ "obj-69", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-67", 0 ],
“destination” : [ "obj-69", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-69", 0 ],
“destination” : [ "obj-66", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-40", 0 ],
“destination” : [ "obj-25", 0 ],
“hidden” : 0,
“midpoints” : [ 151.5, 188.0, 129.5, 188.0 ]
}

}
, {
“patchline” : {
“source” : [ "obj-41", 0 ],
“destination” : [ "obj-25", 0 ],
“hidden” : 0,
“midpoints” : [ 115.5, 188.0, 129.5, 188.0 ]
}

}
, {
“patchline” : {
“source” : [ "obj-25", 0 ],
“destination” : [ "obj-66", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
]
}

#51926

You must be logged in to reply to this topic.