|
Controlling registration
To specify the registration point of a vector shape's cast member, set the regPoint , centerRegPoint , or regPointVertex properties. By changing the location of the shape's registration point, you can modify the way certain kinds of animation look, such as rotation and vertex movement.
 |
Use the regPoint property to move the registration point to an arbitrary location. Setting this property changes the centerRegPoint property to FALSE . |
|
This Lingo places the registration point 20 pixels to the left and 31 pixels above the upper left corner of the shape's bounding rectangle: |
|
member(1).regPoint = point(-20, -31)
|
 |
Use the centerRegPoint property to move the registration point to the center of the shape's bounding rectangle. This yields the most predictable animations. |
|
member(1).centerRegPoint = TRUE
|
|
When the centerRegPoint is set to TRUE , Director will always re-center the registration point whenever the shape is edited. |
 |
Use the regPointVertex property to set the shape's registration point to one of its vertices. When the shape is rotated, for example, this will cause it to rotate around a vertex instead of its center. |
|
This Lingo sets the second vertex of the shape as the registration point: |
|
member(1).regpointVertex = 2
|
|
The regPointVertex defaults to zero. When it is set to a nonzero value, the centerRegPoint property is set to FALSE and the regPoint property is set to the location of the specified vertex. |
|