Adobe ATMOSPHERE User Manual page 361

Table of Contents

Advertisement

dstPin
For text which is fi xed in the window space(immovable), this property specifi es the distance from the window
corner in pixels as an array of two numbers [ X, Y ]. The distance may also be specifi ed as a percentage of the
window size using "dstPinRelative = true" (shown below). Note that in order for text to be fi xed in the window
space, the Viewpoint XML fi le which defi nes the text object must also contain these two properties:
AnchorWidget = "1"
WidgetLine = "0"
The second property removes the pointer line which connects the text to the geometry from which it originates.
Also, the default origination for fi xed text is the top left corner of the window. A different origin may be specifi ed
using "dstPinFlag" shown below.
textObj.dstPin = [ 100, -50 ];
dstPinFlag
Specifi es which corner of the window should be used as the point of origination for text which is fi xed in the
window:
0 = top left (the default origin)
1 = top right
2 = bottom left
3 = bottom right
// set the text origin to bottom right
textObj.dstPinFlag = 3
dstPinRelative
Causes the property "dstpin" (above) to use a percentage of window size, where "1.0" equals 100%. When this
property is "false", "dstPin" returns to using absolute pixels.
textObj.dstPinRelative = true;
shadow
Applies a transparent drop shadow to the text object.
textObj.shadow = true;
shadowColor
Sets the color of the text drop shadow as an array of three values [ R, G, B ].
// green shadow text
textObj.shadowColor = [ 0, 1, 0 ];
shadowRadius
Sets the radius in pixels of the text drop shadow.
textObj.shadowRadius = 3;
349
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents