User Guide
identity() 359
// JavaScript syntax
function enterFrame() {
var i = 5;
while (i < 11) {
sprite(i).hold();
i++;
}
}
See also
playRate (QuickTime, AVI)
identity()
Usage
member(whichCastmember).model(whichModel).transform.identity()
member(whichCastmember).group(whichGroup).transform.identity()
member(whichCastmember).camera(whichCamera).transform.identity()
sprite(whichSprite).camera{(index)}.transform.identity()
member(whichCastmember).light(whichLight).transform.identity()
transformReference.identity()
Description
3D command; sets the transform to the identity transform, which is
transform(1.0000,0.0000,0.0000,0.0000, 0.0000,1.0000,0.0000,0.0000,
0.0000,0.0000,1.0000,0.0000, 0.0000,0.0000,0.0000,1.0000)
.
The
position property of the identity transform is vector(0, 0, 0).
The
rotation property of the identity transform is vector(0, 0, 0).
The
scale property of the identity transform is vector(1, 1, 1).
The identity transform is parent-relative.
Parameters
None.
Example
This statement sets the transform of the model named Box to the identity transform:
member("3d world").model("Box").transform.identity()
See also
transform (property), getWorldTransform()