<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:large">IOhannes and James. Thanks for the replies.</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">I found the relevant line in pdtk_canvas.tcl. I know modifying that isn't permanent, because the next update might break it, but it did let me replace -background white with -background gray95, which is cool. Now, I'll just have to figure out if it's possible to reuse this command in a tcl plugin file. </div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">I downloaded the tcl command plugin through deken, which seems like a great way to test commands.</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Thanks again for pointing me in the right direction. This forum is an amazing group of people!</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Sam</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large"><br></div></div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><br>
<br>
Message: 2<br>
Date: Thu, 3 Mar 2022 16:10:20 +0100<br>
From: IOhannes m zmoelnig <<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>><br>
To: <a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a><br>
Subject: Re: [PD] plugin.tcl not changing anything, Linux<br>
Message-ID: <<a href="mailto:454abfa4-0c48-ad66-fff9-71cc36b84423@iem.at" target="_blank">454abfa4-0c48-ad66-fff9-71cc36b84423@iem.at</a>><br>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
<br>
<br>
On 3/3/22 15:59, Samuel Burt wrote:<br>
> Hi, list.<br>
> <br>
> In Pop_OS (Debian derivative), I created a file called<br>
> *canvasgrey-plugin.tcl* and populated it with:<br>
> <br>
> set ::canvas_fill "gray75"<br>
> set ::text_color "#222"<br>
> <br>
> I've openned Pd, created new windows, saved the preferences, but seen no<br>
> change in the canvas or text color. Any suggestions?<br>
> <br>
> This page <<a href="http://puredata.info/docs/guiplugins/GuiPluginsAPI" rel="noreferrer" target="_blank">http://puredata.info/docs/guiplugins/GuiPluginsAPI</a>> seems recent<br>
<br>
this page refers to pd-extended (long dead), and doesn't apply to pd <br>
(vanilla).<br>
<br>
theres currently no way to set the colors in Pd, but there's a [196] <br>
that tries to add this possibility.<br>
<br>
gasmr<br>
IOhannes<br>
<br>
<br>
[196] <a href="https://github.com/pure-data/pure-data/pull/196" rel="noreferrer" target="_blank">https://github.com/pure-data/pure-data/pull/196</a><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: OpenPGP_signature<br>
Type: application/pgp-signature<br>
Size: 840 bytes<br>
Desc: OpenPGP digital signature<br>
URL: <<a href="http://lists.puredata.info/pipermail/pd-list/attachments/20220303/e36255b7/attachment-0001.sig" rel="noreferrer" target="_blank">http://lists.puredata.info/pipermail/pd-list/attachments/20220303/e36255b7/attachment-0001.sig</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 3 Mar 2022 13:57:26 -0500<br>
From: Samuel Burt <<a href="mailto:composer.samuel.burt@gmail.com" target="_blank">composer.samuel.burt@gmail.com</a>><br>
To: Pd-list <<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>><br>
Subject: [PD] plugin.tcl not changing anything, linux<br>
Message-ID:<br>
        <<a href="mailto:CAFwwLiT%2BzzqZ9DaH1SBVCuYKx4QVEMsw0KUaGzmgH1hpKDDNLQ@mail.gmail.com" target="_blank">CAFwwLiT+zzqZ9DaH1SBVCuYKx4QVEMsw0KUaGzmgH1hpKDDNLQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Thanks, IOhannes, for the link. It's easy to get lost in old documentation.<br>
<br>
Does anyone know if any of the instructions on<br>
<a href="http://puredata.info/docs/guiplugins" rel="noreferrer" target="_blank">http://puredata.info/docs/guiplugins</a> are applicable to Pd 0.5+ anymore or<br>
should we update the page to show which versions of Pd are capable of using<br>
these tcl plugins?<br>
<br>
Sam<br>
<br>
<br>
<br>
<br>
<br>
<br>
> On 3/3/22 15:59, Samuel Burt wrote:<br>
> > Hi, list.<br>
> ><br>
> > In Pop_OS (Debian derivative), I created a file called<br>
> > *canvasgrey-plugin.tcl* and populated it with:<br>
> ><br>
> > set ::canvas_fill "gray75"<br>
> > set ::text_color "#222"<br>
> ><br>
> > I've openned Pd, created new windows, saved the preferences, but seen no<br>
> > change in the canvas or text color. Any suggestions?<br>
> ><br>
> > This page <<a href="http://puredata.info/docs/guiplugins/GuiPluginsAPI" rel="noreferrer" target="_blank">http://puredata.info/docs/guiplugins/GuiPluginsAPI</a>> seems<br>
> recent<br>
<br>
<br>
this page refers to pd-extended (long dead), and doesn't apply to pd<br>
> (vanilla).<br>
<br>
theres currently no way to set the colors in Pd, but there's a [196]<br>
> that tries to add this possibility.<br>
<br>
gasmr<br>
> IOhannes<br>
<br>
<br>
[196] <a href="https://github.com/pure-data/pure-data/pull/196" rel="noreferrer" target="_blank">https://github.com/pure-data/pure-data/pull/196</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.puredata.info/pipermail/pd-list/attachments/20220303/b9bb0e8f/attachment-0001.htm" rel="noreferrer" target="_blank">http://lists.puredata.info/pipermail/pd-list/attachments/20220303/b9bb0e8f/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 3 Mar 2022 20:58:06 +0100<br>
From: IOhannes m zm?lnig <<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>><br>
To: <a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a><br>
Subject: Re: [PD] plugin.tcl not changing anything, linux<br>
Message-ID: <<a href="mailto:1272def0-104c-cff5-4577-49be811d6acf@iem.at" target="_blank">1272def0-104c-cff5-4577-49be811d6acf@iem.at</a>><br>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
<br>
<br>
On 3/3/22 19:57, Samuel Burt wrote:<br>
> Thanks, IOhannes, for the link. It's easy to get lost in old documentation.<br>
> <br>
> Does anyone know if any of the instructions on<br>
> <a href="http://puredata.info/docs/guiplugins" rel="noreferrer" target="_blank">http://puredata.info/docs/guiplugins</a> are applicable to Pd 0.5+ anymore or<br>
> should we update the page to show which versions of Pd are capable of using<br>
> these tcl plugins?<br>
<br>
most of the information is *probably* still correct.<br>
it's just the "global variables for setting colors" section that is <br>
explicitely for "Pd-extended 0.41" (as the first line in the paragraph <br>
says).<br>
<br>
the information that is glaringly incorrect is:<br>
- all the links pointing to sourceforge and the SVN<br>
- the reference to pd-gui.tcl (back in the olden days, the entire GUI <br>
was implemented in a single file "pd-gui.tcl". these days, the GUI is <br>
split over a few dozen files in the tcl/ folder.<br>
<br>
<br>
anyhow: the biggest problem with gui-plugins is, that there is no <br>
well-defined public API.<br>
we somewhat try to keep things backwards compatible, but the promise is <br>
much weaker than on the Pd-core side.<br>
<br>
Pd-GUI has never really been "designed"; it just grew, with stuff added <br>
as it was convenient, and adjusted to fit newer needs; i do minor <br>
refactoring of the code whenever i need to touch it, so it (hopefully) <br>
becomes more robust (also from an API perspective); but i'm not really <br>
claiming to create a consistent interface.<br>
<br>
so your quite on your own when it comes to GUI plugins.<br>
<br>
otoh, there have been GUI plugins that were created 10 years ago and <br>
(afaik) they still work as expected, to the situation is not really bad.<br>
<br>
your best bet for writing your own plugin is probably to just search <br>
deken for "*-plugin" to get some examples:<br>
   <a href="http://deken.puredata.info/search.html?libraries=*-plugin" rel="noreferrer" target="_blank">http://deken.puredata.info/search.html?libraries=*-plugin</a><br>
<br>
and of course, study the code in Pd's tcl/ folder, to see what is <br>
actually there.<br>
<br>
gmfdsa<br>
IOhannes<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: OpenPGP_signature<br>
Type: application/pgp-signature<br>
Size: 840 bytes<br>
Desc: OpenPGP digital signature<br>
URL: <<a href="http://lists.puredata.info/pipermail/pd-list/attachments/20220303/5c00a53d/attachment-0001.sig" rel="noreferrer" target="_blank">http://lists.puredata.info/pipermail/pd-list/attachments/20220303/5c00a53d/attachment-0001.sig</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 3 Mar 2022 17:10:18 -0300<br>
From: James Correa <<a href="mailto:jcorrea.mus@gmail.com" target="_blank">jcorrea.mus@gmail.com</a>><br>
To: Pd-List <<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>><br>
Subject: Re: [PD] plugin.tcl not changing anything, linux<br>
Message-ID:<br>
        <<a href="mailto:CADvmPOmRis6d-A1n_NhuZXD9rdC9ffzrOkuApf_sjpZLM0vvqA@mail.gmail.com" target="_blank">CADvmPOmRis6d-A1n_NhuZXD9rdC9ffzrOkuApf_sjpZLM0vvqA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
If you want  color themes in Pd you can use PdNext from Seb:<br>
<a href="https://github.com/sebshader/pdnext/releases/tag/0.52-1" rel="noreferrer" target="_blank">https://github.com/sebshader/pdnext/releases/tag/0.52-1</a><br>
I am on linux too, manjaro and works quite well!!<br>
He now has a theme-picker plugin, it is quite useful too:<br>
<a href="https://github.com/sebshader/color-themes-plugin" rel="noreferrer" target="_blank">https://github.com/sebshader/color-themes-plugin</a><br>
<br>
James<br>
<br>
On Thu, 3 Mar 2022 at 15:59, Samuel Burt <<a href="mailto:composer.samuel.burt@gmail.com" target="_blank">composer.samuel.burt@gmail.com</a>><br>
wrote:<br>
<br>
> Thanks, IOhannes, for the link. It's easy to get lost in old documentation.<br>
><br>
> Does anyone know if any of the instructions on<br>
> <a href="http://puredata.info/docs/guiplugins" rel="noreferrer" target="_blank">http://puredata.info/docs/guiplugins</a> are applicable to Pd 0.5+ anymore or<br>
> should we update the page to show which versions of Pd are capable of using<br>
> these tcl plugins?<br>
><br>
> Sam<br>
><br>
><br>
><br>
><br>
><br>
><br>
>> On 3/3/22 15:59, Samuel Burt wrote:<br>
>> > Hi, list.<br>
>> ><br>
>> > In Pop_OS (Debian derivative), I created a file called<br>
>> > *canvasgrey-plugin.tcl* and populated it with:<br>
>> ><br>
>> > set ::canvas_fill "gray75"<br>
>> > set ::text_color "#222"<br>
>> ><br>
>> > I've openned Pd, created new windows, saved the preferences, but seen no<br>
>> > change in the canvas or text color. Any suggestions?<br>
>> ><br>
>> > This page <<a href="http://puredata.info/docs/guiplugins/GuiPluginsAPI" rel="noreferrer" target="_blank">http://puredata.info/docs/guiplugins/GuiPluginsAPI</a>> seems<br>
>> recent<br>
><br>
><br>
> this page refers to pd-extended (long dead), and doesn't apply to pd<br>
>> (vanilla).<br>
><br>
> theres currently no way to set the colors in Pd, but there's a [196]<br>
>> that tries to add this possibility.<br>
><br>
> gasmr<br>
>> IOhannes<br>
><br>
><br>
> [196] <a href="https://github.com/pure-data/pure-data/pull/196" rel="noreferrer" target="_blank">https://github.com/pure-data/pure-data/pull/196</a><br>
><br>
><br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -><br>
> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.puredata.info/pipermail/pd-list/attachments/20220303/d1fcd91b/attachment.htm" rel="noreferrer" target="_blank">http://lists.puredata.info/pipermail/pd-list/attachments/20220303/d1fcd91b/attachment.htm</a>><br>
<br>
-<br>
</blockquote></div></div>