![]() |
|
#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)
|
| 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 |