using pcontrol to move forward and back- not working :(
Have a patch where 4 patched are linked through pcontrol. I can move from pcontrol_1 to pcontrol_2 etc (i.e. moving forward) no problem. However when on pcontrol_3, if I want to move back to pcontrol_2 it doesn’t work. Am I doing something wrong, or doesn’t it work like this?
We need to see the patch. Are you just bringing each patch to the front?
I have a patch named pcontrol_1 (see code/attachment). In this I have a open next patch message (pcontrol_2). In turn pcontrol_2 patch has object to open pcontrol_1 (see code/attachment). I would like to be able to go back and forth between these patches. I can open pcontrol_2 from pcontrol_1 fine, and can open pcontrol_1 from pcontrol_2, but after that it stops working and I get the message attached.
code for pcontrol_1 patch:
----------begin_max5_patcher---------- 511.3ocsUssahCCD84To9OX4myhhSpgPea+NVUgLIFvUI1Q1lV5Vs6295LFC jkP3RoRHm3imL9bNyf8mO9PDdtZC2fQOi9EJJ5SGRDf0hDE.hv0rMEULCDHV Hq3Vb71kDk.nZ9q+X5NP45ZHJ3CRBnMLawJgb4LMuv52SZFcTRLZ5j1wTZXD 8xAYRs1FREI.6wrezv84Ai2+IEp5ZtD1.LFv9yiOz9z8H9hU4BQkkqWpYMq9 aehcR+hMe.wRxyAAl7jWmiaePRyOsdmrOaZVM2QnYbIadEuiudjYTILtBjSC UJ14dIDqn0w1SCu76Z5Ft0C62FG4oN9G29h62SIfb.oMxs.L8DCnWt45Rn5F HkkuwWpACGQ1svBkzJclFr3O0BVUekQZm3MheCwSRGkza4kLT4cLzESRf1XB MwWrOc0c2VrPubN.LJ4l8EI+cmd5wVJb5RqplkdkNS18yYxnS8VBzc3soAMl uMW3J8fz6uG36NnYmyCF7nta1ep4FCaI+XCR0vkHoaFB39U5SjqymRGzmfSG oov8B9iHyuO1jOGtS7jGckGPj1E9OyynVqKBYbaGA5.xTxMVgjYEJ4AAk0Mn UhxRtry+3KEl1iwKOS29ESKxkPqzuDs15drll2bWLrMydF45wdUA2JLN1OWH 8y8YFq4uIBeRtCAxpa3eFUo3ZC -----------end_max5_patcher-----------
code for pcontrol_2 patch:
----------begin_max5_patcher---------- 407.3ocuTsraBCCD7bPh+AKelVEmGzPu0uiJDxjrELJwNJ1PoE09sW+HFwKU HondwVd1MilY75ra3f.7bwVPhQOidEEDrSiDXwLHAdf.bEcadIUZaDyg2EyW gG0VSAaUV75bAW0HJmQ1W6MMBmVA15uzvnk6KwJrfZldH9n9krOs8ShdLziy WWw3kfxJ.hGslpxWx3Kl0.4JmGRRC0eEJNL1rM9IyZjFBM8.pDqUdtBsneMb fYWuM5tkBcLCH28LHJ059z3qkA64xgo9nFbDgwno8Nep.ojt.NOfD0.Gw0mP Vs2wbJsa4TzukSIotnIwrMYrYkj8emSVsdImlfuniB+0a9IFSj4F6S8q8xP9 Z4hpJf6t5v81kkvFnrBTPy2WxqQ3NOkG4dbSH1gcRTl8AeRebKyXuSuAczfK Y7y9+nUMlBm3XoXcStmz1gUzA5o.jJFmpXB9AMQNtokrhBfezMcASRmWBEW4 GV2rrH2hrh+SxpM8n00afFYKyNEoGLVIZLmGOxclwcmcLiafML+mjoQrrpW9 AXPA5kC -----------end_max5_patcher-----------
You’re doing just what it says: you can’t save a patch (like pcontrol_1) that has an instance of itself in it. In this case, because pcontrol_2 has pcontrol_1 in it (and vice-versa), the duplicate is down one level in the hierarchy, but it’s there. Not allowed…infinite recursion.
You should just have the four patches and use send/receive back and forth from a master patch that contains all of them. Use the [pcontrol] object only at the master patch level to open them. You can still use the message boxes "open next patch" and "open previous patch" if you want. Or why not have a [tab] in each that lets you open any of the 4, instead of going forward and back? Simple enough, just use [send] and the chosen tab number, then at the master patch level, use [select] to open the correct patch.
You can also use "wclose" to [thispatcher] within each patch if you want another "close" button besides the standard one in the window title bar. This is sometimes handy for less mouse movement, and it also lets you use windows without title bars…which can have semi-transparent backgrounds…niiiiice.
You might also look at [bpatcher] for some other ideas, though usually in that case you only see one at a time and you use bringtofront/sendtoback to switch between them.
Thanks for advice seejay. i had thought of this.. However, the patch is to try out some different interaction methods and i need to have the patches so you cant access patch 4 directly from patch 1; you have to open the next patch and one after that to reach patch 4 and visa versa. I know its a long way, but i’m deliberatley trying to slow down navigation.
would the methods you mentioned allow this?
P.s. what you’re saying about:
"lets you use windows without title bars…which can have semi-transparent backgrounds…niiiiice."
Anychance you could give me an example of that please- might be really useful.