budi prakosa wrote:
hello all,is it possible to load subpatch inside a patch on runtime from a list of subpatches?
in Pd-lingo a "subpatch" means a canvas ("window") stored within a patch.
since it isstored with the patch, it makes little sense to try "loading"
it at runtime (it's already loaded...)
in Pd-lingo, an "abstraction" means a canvas ("window") stored on disk to be used by another patch as an ordinary object.
it can be loaded at runtime by e.g. using "File->Open" or equivalent. equivalents are (for instance): - [; pd open mypatch.pd path(- using dynamic patching to create any(!) object: [;pd-sub obj 100 100 mypatch( will create an object [mypatch] in the subpatch named "sub".
all of this is non-official and thus thou shall not complain if things break in future Pd-releases.
maybe by using playlist object?
whatever pleases you.anyhow, in general i would recommend to not use any dynamic features and instead turn on/off (sub)patches at runtime by a clever use of [switch~] and [spigot] and whatnot.
fgmadr IOhannes
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
