btw, Pd does recognise "print", Frank also helped me get this going

But: It uses old style netreceive which is suicide to run on a server.

The attached patch was used to print out live snapshots of graphs in
running Pd patches. 

Send two commands on the socket, first one open the patch you want,
sleep is needed or you get a blank page, second one tells Pd to print.

>From Perl 

print "opening Pd file\n";
$pdopencmd = "echo \"pd open $pdfile ./;\""." "." | pdsend 3001"; # open new Pd 
file
system($pdopencmd);
sleep(2);
print "printing pd to postscript\n";
$pdprintcmd =  "echo \"pd-$pdfile print $pdfile.ps;\" | pdsend 3001"; #print ps 
image
system($pdprintcmd);




On Fri, 21 Sep 2007 23:39:53 +0000
[EMAIL PROTECTED] wrote:

> 
> i just got an idea how to easealy create antialiased images of patches,
> as someone had proposed this as a pdpedia feature erlier on this list.
> 
> in order to do it automaticly i first thougt of adding [loadbang]-[;pd
> print patch.pd( to each patch (by just echoing a few lines to it)
> but apparently pd doesnt recognize 'print' msg ..but there should be
> some other way of making it ( via tcl msgs , i suppose )
> so then just a pstoimg can be used :
> pstoimg -antialias -aaliastext pd.ps
> 
> [shell] external can be used as well, actualy .. and maybe after [shell]
> returns 0, [; pd exit( can be sent.
> 
> i just have writen this in case someone is realy gonna add this feature
> to pdpedia ..
> 
> 
> _______________________________________________
> PD-list@iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list


-- 
Use the source

Attachment: printer.pd
Description: Binary data

_______________________________________________
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to