-- Jump the flag. nil leaves width and height alone.move(flag, 200, 40)
-- Ease it back. Later moves use this easing.move(flag, nil, nil, nil, nil, "LOG", 0.3)
move(flag, 20, 40)
Turns a node, or a group. The angle is in degrees, in instrument space. LINEAR and LOG ease to the new angle.
Parameters
#
Name
Type
Description
1
node_id
ID
From img_add, txt_add, or canvas_add.
2
degrees
Number
Degrees to rotate the object to.
3
anchor_x
Number
Optional. Rotate around this X coordinate, in instrument space.
4
anchor_y
Number
Optional. Rotate around this Y coordinate, in instrument space.
5
anchor_z
Number
Optional. Accepted. 2D instruments do not use it.
6
animation_type
String
Optional. OFF, LINEAR, or LOG. Accepted. Animation is not applied yet.
7
animation_speed
Float
Optional. 1.0 fastest, 0.0 slowest.
8
animation_direction
String
Optional. DIRECT, CW, CCW, FASTEST, or SLOWEST.
Example
"cm">-- Load and display an image
face = "tok-fn">img_add_fullscreen("st">"face.png")
"cm">-- Rotate to 90 degrees, around the image center
"tok-fn">rotate(face, "nu">90)
"cm">-- 450 is the same angle as 90
"tok-fn">rotate(face, "nu">450)
Example: a jump, and a sweep
-- Jump the needle to 90rotate(needle, 90)
-- Later turns take the short way, on a log curverotate(needle, nil, nil, nil, nil, nil, nil)
rotate(needle, 10, 120, 120, nil, "LOG", 0.5, "FASTEST")
remove
Simulation Instrument Studio 1
Definition
remove(image_id)
Remarks
Remove the image from the instrument.
Parameters
Name
Description
image_id
Image id returned by an earlier img_ or canvas call.