Apple Final Cut Pro 5 User Manual Page 287

  • Download
  • Add to my manuals
  • Print
  • Page
    / 376
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 286
FXScript Reference 287
Compound Operators
In an assignment statement, you can use the compound assignment operators. These are
+=, –=, *=, /=, %=, &=, |=, and ˆ=.
Operators and Regions
For regions, only a few operators can be used. These are +, –, &, |, and ˆ.
Operators and Strings
For strings, only the + operator can be used, for adding strings together.
Data Types
Data types allow you to declare variables and assign specific data types to them.
Data type statements are always followed by one or more variable names, separated by
commas.
You can create arrays by following a data type statement with up to 10 dimensions of the
array in brackets. The example creates a 3*4 array of points and names it “p”:
point p [3] [4]
Data Type Syntax Description
float
float variablename
Declares a floating-point
variable
point
point variablename
Declares a variable that contains
a two-dimensional point
coordinate
point3d
point3d variablename
Declares a variable that contains
a three-dimensional floating-
point coordinate
image
image variablename
[width][height]
Declares a two-dimensional
buffer of pixels to be operated
on
region
region variablename
Declares a named region. A
region is an arbitrary shape.
string
string variablename
Declares a text string
Page view 286
1 2 ... 282 283 284 285 286 287 288 289 290 291 292 ... 375 376

Comments to this Manuals

No comments