WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-08-2015, 12:37 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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)
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 02:10 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC