[PD-dev] Plugins Prefs plugin WAS: Tabbed Console plugin

Hans-Christoph Steiner hans at at.or.at
Thu Oct 15 17:39:58 CEST 2009


On Oct 14, 2009, at 9:39 PM, András Murányi wrote:

>
> i've attached the first version of a Tabbed Console plugin. The goal  
> is that new messages can be sorted on new tabs by their prefix (the  
> part before the colon).
> It already has a bug since it cannot deal with so many tabs that go  
> offscreen as ttk doesn't provide an easy way to scroll tabs. With  
> the brand new startup order in Pd it seems OK as startup plugins  
> start only when libs and everything are loaded so the big flood of  
> messages is over when the plugin starts. However if you can take  
> your time please test it under real life circumstances and feed me  
> back if your tabs have run out of space soon.
>
> Also i have tried to impement a kind of META comment system in the  
> source - not to flash my credits but because later i imagine a  
> window in Pd that would automatically list available plugins with  
> their description and let the user enable/disable them. If the META  
> system looks alrite later i will try to make that window up.
>
> I have made a first shot on a plugin-selector plugin. Once loaded,  
> it appears in the Media/Preferences menu. Also attached a new  
> version off the tabbed console plugin. Comments are welcome.
> BTW the gtklook plugin makes messagebox font quite big (compared to  
> the button's text) and there is no way to override it, unless i  
> overwrite some options which i'm not bold enough to do...
>
> Andras
> <plugins-plugin.tcl><tabbed_console-plugin.tcl>


The plugins-plugin.tcl is a great idea!  The only problem is that  
plugins can be installed anywhere in the Pd path.  Check the  
load_startup_plugins proc in pd-gui.tcl.  I think you could make this  
work by just inserting/removing the 'disabled' folder in the path to  
the plugin itself.  Also, you'll need to check to make sure that the  
'disabled' subfolder is there, and create it if not.

Perhaps Pd should keep a list of the plugin files its loaded, or maybe  
there is another way to handle that.  I attached a version that works  
on Mac OS X, the prefs menu has a different name:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugins-plugin.tcl
Type: application/octet-stream
Size: 5539 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20091015/1a30522f/attachment.obj>
-------------- next part --------------



.hc


----------------------------------------------------------------------------

All information should be free.  - the hacker ethic






More information about the Pd-dev mailing list