Is it possible to display multiple lines of text using one instance of [text2d]/[text3d]?
Antonio
On Fri, May 4, 2012 at 2:18 PM, Antonio Roberts antonio@hellocatfood.comwrote:
Is it possible to display multiple lines of text using one instance of [text2d]/[text3d]?
To do that I usually convert text into ascii strings and pass the list to
text3d prepend string message. I don't know if there are others methods. here a video that use this tecnic: http://estereotips.net/puredata-tweets-visualization/
cheers husk
Antonio
--
antonio@hellocatfood.com http://www.hellocatfood.com ============================
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 05/04/2012 02:42 PM, Husk 00 wrote:
On Fri, May 4, 2012 at 2:18 PM, Antonio Roberts <antonio@hellocatfood.com mailto:antonio@hellocatfood.com> wrote:
Is it possible to display multiple lines of text using one instance of [text2d]/[text3d]?
To do that I usually convert text into ascii strings and pass the list to text3d prepend string message. I don't know if there are others methods.
if you manage to create a symbol with a CR (or LF?, or CRLF?), then the [text*] objects will linebreak there as well. but it might be easiser to use [string(
fgmasdr IOhannes
----- Original Message -----
From: IOhannes m zmölnig zmoelnig@iem.at To: pd-list@iem.at Cc: Sent: Friday, May 4, 2012 11:04 AM Subject: Re: [PD] Multiline text using [text2d]/[text3d]
On 05/04/2012 02:42 PM, Husk 00 wrote:
On Fri, May 4, 2012 at 2:18 PM, Antonio Roberts <antonio@hellocatfood.com mailto:antonio@hellocatfood.com>
wrote:
Is it possible to display multiple lines of text using one instance of [text2d]/[text3d]?
To do that I usually convert text into ascii strings and pass the list to text3d prepend string message. I don't know if there are others methods.
if you manage to create a symbol with a CR (or LF?, or CRLF?), then the [text*] objects will linebreak there as well.
Here's quick-and-dirty, Pd-Vanilla-compatible (attached).
Oddly it displays differently in the console on Pd-l2ork, but it looks fine in Pd-ext nightly.
-Jonathan
but it might be easiser to use [string(
fgmasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Le 04/05/2012 17:59, Jonathan Wilkes a écrit :
----- Original Message -----
From: IOhannes m zmölnig zmoelnig@iem.at To: pd-list@iem.at Cc: Sent: Friday, May 4, 2012 11:04 AM Subject: Re: [PD] Multiline text using [text2d]/[text3d]
On 05/04/2012 02:42 PM, Husk 00 wrote:
On Fri, May 4, 2012 at 2:18 PM, Antonio Roberts <antonio@hellocatfood.com mailto:antonio@hellocatfood.com>
wrote:
Is it possible to display multiple lines of text using one instance of [text2d]/[text3d]?
To do that I usually convert text into ascii strings and pass the list to text3d prepend string message. I don't know if there are others methods.
if you manage to create a symbol with a CR (or LF?, or CRLF?), then the [text*] objects will linebreak there as well.
Here's quick-and-dirty, Pd-Vanilla-compatible (attached).
Oddly it displays differently in the console on Pd-l2ork, but it looks fine in Pd-ext nightly.
With 10 instead of 13 in the message box, it looks fine under ubuntu and pd vanilla. ++
Jack
-Jonathan
but it might be easiser to use [string(
fgmasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
With 10 instead of 13 in the message box, it looks fine under ubuntu and pd vanilla.
Ditto for pd-l2ork
Thanks for the help everyone! I managed to merge all of the advice here into the attached patch. You have to press the red button for a new line each time but it's a start. Plus, each new line is indented by a single space (most likely a problem caused by [add2 $1( )
Antonio
On 5 May 2012 17:50, Ivica Ico Bukvic ico@vt.edu wrote:
With 10 instead of 13 in the message box, it looks fine under ubuntu and pd vanilla.
Ditto for pd-l2ork
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Le 04/05/2012 14:18, Antonio Roberts a écrit :
Is it possible to display multiple lines of text using one instance of [text2d]/[text3d]?
Antonio
Yes, As you can see in the help patch, these objects accept the message 'string', which contains ASCII values. See the patch attached. ++
Jack
Thanks for this, but there's still a bit of a problem. I need to be able to type in the text using a symbol box (sorry, I should've mentioned this earlier).
I had a look through the archives and found that someone had written an abstraction to convert text to ascii http://lists.puredata.info/pipermail/pd-list/2011-08/090340.html but this doesn't support displaying numbers.
Using this solution I can still convert text to ascii but how can I type in a line break using a symbol box?
Antonio
On 4 May 2012 13:52, Jack jack@rybn.org wrote:
Le 04/05/2012 14:18, Antonio Roberts a écrit :
Is it possible to display multiple lines of text using one instance of [text2d]/[text3d]?
Antonio
Yes, As you can see in the help patch, these objects accept the message 'string', which contains ASCII values. See the patch attached. ++
Jack
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list