i have two abstractions containing gui elements in one subpatch with graph on parent. i want to change the visible abstraction via a selector or something else. i tried to change the coordinates of the visible canvas in the subpatch via [pd-subpatch coords....( but this seems to reinitialise all the gui elements within the abstractions.
so i wonder, if theres a way to move the abstractions inside the subpatch with a message instead of changing the coordinates of the subpatch canvas (hoping, that this wont reinit the gui elements). however, i tried to figure it out in the help-browser, but still i couldn't get it to work.
what do messages like "motion" or "click" do? what about "mouse" and "mouseup"?
just don't know where to start...
-
Moving objects in subpatch with pd-msg
-
I just looked at doc/manuals/pd-msg/1.msg_and_patch/3.1.motion.pd, it seems like mouse is a 5 argument message that starts with x and y position, and mouseup is a 3 argument message(with x and y). The top left message box makes the subpatch visible, changes to edit mode, clicks the mouse at 5, 5 and unclicks it at 200, 200, which selects the group. then the message box below it selects the group. so when the group is selected the first to arguments to the motion message are relative x and y positions.
Haven't tried any of this with GOP, hope it works for you( doesn't redraw?). also there are some helpful things in iemguts for figuring out the coordinates of objects and whatnot