| |
As with all strings, you can use optional double (") or single (') quotes as string delimiters.
Example 1:
Print Hello World!
Print the text 'Hello World!' to the current print target
(console,object or image).
Example 2:
Print " Hello, World! "
Print the text ' Hello, World! ' to the current print target.
Example 3:
Print This text\nhas two lines
Print two lines of text, 'This text' and 'has two lines'.
Example macro:
# EXAMPLE Print
# Requires YASARA Model
Clear
MakeTextObj YASARA,Width=150,Height=20
PosText 50%,0%,justify=center
Font Baikal,Height=100%,Color=Yellow,Depth=50,DepthCol=Red
Print "YASARA"
PosObj YASARA,0,-30,50
OriObj YASARA,70,-63,-4
LoadPDB 1crn
Style Ribbon,Stick
PosObj 1crn,0,3,33
OriObj 1crn,42,-48,-12
AutoRotateAll Y=1
 | | Figure: Result of the example macro above. |
|