[PD] is there an object that emits bang when a subpatcher is restored?

Luke Iannini lukexipd at gmail.com
Sat Oct 31 20:19:13 CET 2009


On Sat, Oct 31, 2009 at 7:08 AM, Frank Barknecht <fbar at footils.org> wrote:
> Hallo,
> Ivica Ico Bukvic hat gesagt: // Ivica Ico Bukvic wrote:
>
>> On Sat, 2009-10-31 at 21:43 +0800, jurgen wrote:
>> > try [closebang] - read help file
>> >
>> > Jurgen
>>
>> Thanks for the info! However, this works when closing the entire patch
>> but not sub-patchers. Likewise, I would need something that bangs when
>> you open sub-patchers. I guess "restore" was the wrong terminology to
>> use here.
Hi Ivica
The [tot] object from toxy will emit a bang from its right outlet
whenever a subpatch is opened.  I can't recall any ways to know when a
subpatch has been closed though ([active] from Cyclone will tell you
about its focused state).

Best
Luke

>
> Depending on your goals, the following may be a solution: You can open and
> close not only by clicking on it, but also by sending the message "vis 0/1" to
> the subpatch-receiver. Example:
>
>  [pd mysub]
>
>  [tgl]
>  |
>  [vis $1(
>  |
>  [s pd-mysub]
>
> If you only open or close a subpatch this way, you can follow any state
> changes by reading from [r pd-mysub].
>
> Ciao
> --
> Frank
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>




More information about the Pd-list mailing list