IOhannes and James. Thanks for the replies.
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.
I downloaded the tcl command plugin through deken, which seems like a great way to test commands.
Thanks again for pointing me in the right direction. This forum is an amazing group of people!
Sam
Message: 2 Date: Thu, 3 Mar 2022 16:10:20 +0100 From: IOhannes m zmoelnig zmoelnig@iem.at To: pd-list@lists.iem.at Subject: Re: [PD] plugin.tcl not changing anything, Linux Message-ID: 454abfa4-0c48-ad66-fff9-71cc36b84423@iem.at Content-Type: text/plain; charset="utf-8"; Format="flowed"
On 3/3/22 15:59, Samuel Burt wrote:
Hi, list.
In Pop_OS (Debian derivative), I created a file called *canvasgrey-plugin.tcl* and populated it with:
set ::canvas_fill "gray75" set ::text_color "#222"
I've openned Pd, created new windows, saved the preferences, but seen no change in the canvas or text color. Any suggestions?
This page http://puredata.info/docs/guiplugins/GuiPluginsAPI seems
recent
this page refers to pd-extended (long dead), and doesn't apply to pd (vanilla).
theres currently no way to set the colors in Pd, but there's a [196] that tries to add this possibility.
gasmr IOhannes
On 3/4/22 04:31, Samuel Burt wrote:
IOhannes and James. Thanks for the replies.
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.
like this "mybackground-plugin.tcl"?
bind PatchWindow <Configure> "+%W.c configure -background yellow"
this adds a hook, so that whenever a PatchWindow is updated (that is: created, or moved around,...), it will re-configure the background property to your liking.
gfmdsr IOhannes