Re: Load extensions from abstraction folder?
adam johnson <[email protected]>
| Newsgroups | gmane.comp.multimedia.puredata.general |
|---|---|
| Message-ID | <CAGdwZQVH_2DpEBGh9C8Aa-OfWVsk=ewKtNj=yqKAFWcY--hM2w@mail.gmail.com> |
And you can maybe use plugin-dispatch-receiver for a vanilla solution,
something like:
[loadbang]
|
[plugin-dispatch start-plugin args
|
[s pd]
then in the plugin itself
proc start-plugin (args) {
source this-plugin.tcl
}
On Wed, Nov 13, 2024 at 1:55 AM adam johnson <[email protected]> wrote:
> You can do [loadbang] -> [source some-plugin.tcl( -> [hcs/sys_gui]. Not
> the most elegant method but it works. Seems like a job for [declare].
>
> On Wed, Nov 13, 2024 at 1:50 AM Chris McCormick <[email protected]>
> wrote:
>
>> Hi,
>>
>> Is it possible to have a Tcl extension load from an abstraction
>> directory or -declare path (when the abstraction loads) instead of the
>> top level Pd search path? In other words I want to put
>> something-plugin.tcl into a folder that is not on the search path and
>> have it load when I load the patch or abstraction in the folder where it
>> is. I guess the ultimate use-case is plugins that only load with a
>> particular abstraction.
>>
>> Cheers,
>>
>> Chris.
>>
>> --
>> https://mccormick.cx/
>>
>> ---
>> [email protected] - the Pure Data mailinglist
>>
>> https://lists.iem.at/hyperkitty/list/[email protected]/message/5M7WHO3PZADXDDPKMLLYR6XKCS252UHQ/
>>
>> To unsubscribe send an email to [email protected] mailing list
>> UNSUBSCRIBE and account-management -> https://lists.iem.at/
>>
>>
---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/3S4AIH7RNB4SSZTWRZJPAQD7HGOZNJGO/
To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/