![]() |
|
#1
|
|||
|
|||
|
Multi-line text node
Is this possible? I couldn't find a way to insert special characters to a text node (e.g. TAB or RETURN).
Thanks! |
|
#2
|
|||
|
|||
|
Here's example code that uses the newline character to create multiple lines in a text object:
Code:
import viz
viz.go()
gallery = viz.addChild('gallery.osgb')
text = viz.addText('line 1\nline 2\nline 3',parent=viz.SCREEN,pos=[0.5,0.5,0])
text.alignment(viz.ALIGN_CENTER)
|
|
#3
|
|||
|
|||
|
Thanks Jeff. I actually just found it and wanted to post it.
Is there a way to insert other special characters, like TABs? |
|
#4
|
|||
|
|||
|
Hello tokola,
didn't you asked the exact same question in another thread just a week ago? There I stated that using "\t" should insert a tab into your string. Best, Johannes |
|
#5
|
|||
|
|||
|
I am so sorry. You're absolutely right. I totally forgot about it. I think dementia is on the way
![]() I'll probably delete one of the two (if possible) to avoid unnecessary clutter of the forum. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| input from a text file | dig | Vizard | 5 | 10-20-2013 02:20 AM |
| OSG Text Node Additional Parameters | pcatalano | Vizard | 2 | 11-01-2011 08:45 AM |
| multi line text boxes | mjabon | Vizard | 2 | 07-16-2009 12:37 PM |
| Informationboxes with text | snoopy78 | Vizard | 3 | 07-16-2009 11:23 AM |
| I cannot show wrl file with text node | sled | Vizard | 3 | 06-25-2003 08:52 AM |