Dataset Commands
audio
Permalink to audioThe audio command controls aspects of the optional audio track associated with the current dataset loaded on the sphere. These are the available subcommands:
volume
Permalink to volumeReturns the current volume, for example 75.0.
mute
Permalink to muteMutes the audio track.
unmute
Permalink to unmuteUnmutes the audio track.
toggle
Permalink to toggleMutes the audio track if it is playing, and turns it back on if it is muted.
Increases the volume of the audio track by a system-dependent amount, up to a maximum value.
down
Permalink to downDecreases the volume of the audio track by a system-dependent amount, down to a minimum value.
[0 … 100]
Permalink to [0 … 100]Sets the volume to a percentage of the current system volume. The value is an integer in the range 0-100.
get_animating
Permalink to get_animatingThe get_animating
command returns “1” if the current clip is animating, or “0”
if it is paused or no clip is loaded.
get_frame_count
Permalink to get_frame_countThe get_frame_count
command returns the total number of frames in the current
clip, or 0 if no clip is loaded.
get_frame_number
Permalink to get_frame_numberThe get_frame_number
command returns the frame number that is currently being
displayed within the current clip. Frames are numbered from 0 to one less than
the total number of frames. If no clip is loaded, the frame number is zero.
get_frame_rate
Permalink to get_frame_rateThe get_frame_rate
command returns the frame rate and dwell times at which the
current clip is now playing. If no clip is loaded, the value is not valid or
useful.
The return value is a line with three space-separated numbers: fps first_dwell_ms last_dwell_ms
.
The value fps
is the current number of frames per second. It is a floating
point number, and fractional values are allowed.
The values first_dwell_ms
and last_dwell_ms
give the integer dwell times for
the first and last frames of the current clip, in milliseconds. They specify an
additional amount of time that the system lingers on the first and last frames.
This is particularly useful for animations through time, to help the viewer
adjust to the time discontinuity as the clip wraps around the end.
get_frame_rate
30.000000 0 0
This example shows the default values for frame rate and dwells.
get_tilt
Permalink to get_tiltThe get_tilt
command returns the current position of the sphere display in
terms of three defining Euler angles. The angles are specified in degrees. In
the SOS display software, the sphere image is first rotated around the y-axis,
then the x-axis, and finally the z-axis. The result is a set of three numbers
that can describe any possible rotational position of the sphere.
kml
Permalink to kmlThe kml
command controls the placement of KML features. By default KML legends
and ancillary graphics are placed at 180 degrees longitude. These are the
available subcommands:
legendXoffset
Permalink to legendXoffsetkml legendXoffset [dx]
Offsets the longitude of the legend by dx degrees.
legendYoffset
Permalink to legendYoffsetkml legendYoffset [dy]
Offsets the latitude of the legend by dy degrees.
legendoffset
Permalink to legendoffsetkml legendoffset [dx] [dy]
Offsets the longitude of the legend by dx degrees and the latitude by dy degrees.
pipscale
Permalink to pipscalekml pipscale [sf]
Scales all image placemarks in the KML file using sf. For example, an sf of 1.5 would increase the size by 50%.
orient
Permalink to orientorient [globe_lat,globe_lon] [room_lat,room_lon]
The orient
command positions the sphere display in terms of two (latitude,
longitude) pairs. The intent is to provide a more intuitive way to position the
sphere than the basic Euler angles specified for the set_tilt
command. The
idea is to move a particular position on the global data set (globe
coordinates) to a particular position on the physical sphere (room
coordinates). The global data set is further adjusted so that North is up at
the specified point.
In the default SOS position (set_tilt 0 0 0
) the two coordinate systems
(globe and room) are identical ways of specifying a position on the sphere
surface. As the sphere display orientation is changed, the room coordinate
system by definition remains in the original position, and the globe coordinate
system shifts around to describe the data orientation as displayed on the
sphere.
pause
Permalink to pauseThe pause
command stops animating the current clip (the opposite of play
).
pic_mute
Permalink to pic_muteThe pic_mute
command toggles the sos video display, turning it off if it is
visible, and vice versa. When muted, the clip continues to play, but is not
visible on the sphere.
pip
Permalink to pippip [filename]
The pip
command creates a new PIP window and loads the specified image filename
into the window. (Note that filename can also be a url image, as in
http://example.com/image.jpg, or an rtsp stream, as in
http://server_name/stream_name.sdp) The PIP becomes the selected PIP, to which
the following PIP commands apply.
pipalpha
Permalink to pipalphapipalpha [0 to 1]
The pipalpha
command specifies the opacity of the selected PIP. A value of 0
makes the PIP fully transparent (invisible). A value of 1 makes the PIP fully
opaque. Values between 0 and 1 make the PIP translucent.
pipcoords
Permalink to pipcoordspipcoords [lat,lon]
The pipcoords
command positions the center of the selected PIP at a
particular latitude and longitude. Unlike the pipvertical command, the PIP
shape doesn’t change as the latitude increases. A different transformation is
used in each case, so it is recommended to use either pipvertical or pipcoords,
but not both.
pipdelay
Permalink to pipdelaypipdelay [seconds]
The pipdelay
command specifies the offset in seconds from the start of the
current clip where the selected PIP first appears. If not specified, the PIP is
visible from the start of the clip.
pipdelete
Permalink to pipdeletepipdelete [name]
The pipdelete
command deletes the with the user-specified name. Once deleted,
the PIP disappears from the sphere, and is no longer available to be
manipulated by other PIP commands.
pipfadein
Permalink to pipfadeinpipfadein [seconds]
The pipfadein
command specifies the number of seconds it takes the selected
PIP to fade in when the PIP first appears (per the pipdelay
command).
pipfadeout
Permalink to pipfadeoutpipfadeout [seconds]
The pipfadeout
command specifies the number of seconds it takes the selected
PIP to fade out when the PIP disappears (per the piptimer
command).
pipfps
Permalink to pipfpspipfps [value]
The pipfps
command specifies the animation rate of the selected PIP in frames
per second for animated pips. The default animation rate of the PIP is read
from the PIP movie file. If not specified in the file, it plays at 30 fps.
pipheight
Permalink to pipheightpipheight [height]
The pipheight
command specifies the height of the selected PIP, in degrees
latitude.
piphorizontal
Permalink to piphorizontalpiphorizontal [value]
The piphorizontal
command specifies the horizontal placement of the selected
PIP. The value is in degrees east latitude.
pipimage
Permalink to pipimagepipimage [filename]
The pipimage
command loads a new image file which will replace the window
contents of the selected pip.
pipname
Permalink to pipnamepipname [name]
The pipname
command assigns a user-specified name to the selected PIP, so
that it may be selected by that name for future manipulation. If this command
is not used, the name of the clip is that of the filename specified when it was
created.
pipstyle
Permalink to pipstylepipstyle [projector|globe|room]
The pipstyle
command specifies where the selected PIP appears, and how it is
affected as the sphere data is reoriented via the set_tilt
command.
projector
Permalink to projectorDuplicates the PIP four times around the sphere, in front of the traditional
projector positions. The locations are unaffected by the set_tilt
command.
globe
Permalink to globeVisually attaches the PIP to the globe data set, so the PIP moves when the
sphere spins or is moved with the set_tilt
command.
room
Permalink to roomKeeps the PIP stationary on the sphere surface (relative to the room) as the global data set moves.
pipselect
Permalink to pipselectpipselect [name]
The pipselect
command selects a PIP (or multiple PIPs) with a user-specified
name. The name is either specified via the pipname command, or is the filename
specified originally by the pip
command. Most commands then apply to the
selected PIP (or PIPs).
piptimer
Permalink to piptimerpiptimer [seconds]
The piptimer
command sets the length of time that the selected PIP remains
visible on the sphere. If not specified, the PIP is always visible after it
first appears.
pipvertical
Permalink to pipverticalpipvertical [value]
The pipvertical
command specifies the vertical placement of the center of the
selected PIP. The value is in degrees north latitude. Shifting the PIP with
this command changes its shape, since the edges of the PIP remain aligned with
lines of longitude, which converge towards the north and south poles.
pipwidth
Permalink to pipwidthpipwidth [width]
The pipwidth
command specifies the width of the selected PIP, in degrees
longitude.
play
Permalink to playplay [clip_number]
The play
command with the clip_number
specified clears the sphere, then
loads and plays the given clip_number
. The first clip in the playlist is
clip_number
1. For example, play 2 loads and plays the second clip in the
current playlist. A clip number that is greater than the last clip in the
current playlist plays the last clip.
The play
command with no arguments does one of two things, depending on
whether or not a clip is currently loaded. If the sphere is clear (nothing
loaded), play loads and plays the first clip in the current playlist (identical
to play 1). If a clip is already loaded, play starts animating the clip (the
opposite of pause). If the clip is already animating, play
has no effect.
set_frame_rate
Permalink to set_frame_rateset_frame_rate [fps] ([first_dwell_ms last_dwell_ms])
The set_frame_rate
command sets the playback speed of the currently loaded
clip. The fps
argument is required, and specifies the speed of animation in
frames per second. If not specified, the default animation rate is 30 frames
per second. The fps
value is a floating point number, and fractional values
are allowed.
The optional arguments first_dwell_ms
and last_dwell_ms
specify the dwell
times for the first and last frames of the current clip, in milliseconds. They
specify an additional amount of time to linger on the first and last frames.
This is particularly useful for animations through time, to help the viewer
adjust to the time discontinuity as the clip wraps around the end.
Note: The SOS system does not attempt to impose a maximum frame rate, because it depends on the particulars of the computer and the clip being played. Most clips will eventually fail to play correctly as the frame rate is increased, due to exhaustion of computer system resources.
set_frame_rate 29.97
Sets the frame rate to 29.97 frames per second (the historic American TV standard frame rate).
set_frame_rate 30 1000 500
Sets the frame rate to 30 frames per second (the SOS default), and dwells an additional second on the first frame, and half-second on the last frame.
set_tilt
Permalink to set_tiltset_tilt [x] [y] [z]
The set_tilt
command positions the sphere display in terms of three defining
Euler angles. The angles are specified in degrees. In the SOS display software,
the sphere image is first rotated around the y-axis, then the x-axis, and
finally the z-axis. The result is a set of three numbers that can describe any
possible rotational position of the sphere.
skip
Permalink to skipskip [frame_number]
The skip
command stops animation, then jumps to the specified absolute frame
number within the current clip. The first frame of the clip is number 0. Values
of frame_number
less than zero are rounded up to zero. Values of
frame_number
past the last frame are rounded down to the last frame.
skip 0
Jumps to the beginning of the current clip.
skip 99
If there are 100 frames in the current clip, this jumps to the last frame of the clip.
skip 999999999
Jumps to the end of the current clip. 999999999 is larger than any reasonably-sized clip, and is rounded down to the last frame.
step
Permalink to stepstep [n_frames]
The step
command stops animation, then increments the current frame number by
n_frames
, and jumps to the new frame. If n_frames
is negative, the command
steps backward. The command argument is the number of frames to jump relative
to the current frame number. The step command wraps smoothly around the first
or last frame of the clip as needed.
step 10
If there are 100 frames loaded, and SOS is on frame number 10, this command jumps to frame number 20.
step 1
If there are 3600 frames loaded, and SOS is paused on frame number 3599 (the last frame in the clip), this command jumps to frame 0 (the first frame in the clip).
stop
Permalink to stopThe stop
command clears the sphere. It unloads any data that is currently
loaded.
zrotationangle
Permalink to zrotationanglezrotationangle [angle]
The zrotationangle
command sets the increment angle for Z Rotation, in
degrees. Every time the rotation angle is updated (at a rate determined by
zfps), it is incremented by this amount. The default is 0.1 degrees.
zfps 1
zrotationangle 6
zrotationenable 1
This set of commands make the sphere act like a jumpy second hand on a watch, jumping by 6 degrees every second, so the sphere makes one complete rotation around the room every minute.
zfps 30
zrotationangle 0.1
zrotationenable 1
This set of commands turn on Z rotation with the same settings as the default value. Since the rotation angle is being updated 30 times per second, the result is a smooth rotation around the room. With a rotation angle of 0.1 degree being incremented 30 times per second, the sphere rotates 3 degrees every second, so it completely rotates around the room every 2 minutes (since 360 degrees / 3 degrees per second = 120 seconds).
zfps
Permalink to zfpszfps [fps]
The zfps
command sets the number of times per second that the rotation angle
is updated. The default value is 30.
zrotationenable
Permalink to zrotationenablezrotationenable [0 | 1]
The zrotationenable
command turns Z Rotation on or off. A command argument of
0 or 1 is required: 1 to turn Z Rotation on and 0 to turn it off.
zrotationtoggle
Permalink to zrotationtoggleThe zrotationtoggle
command toggles the status of Z Rotation, turning it on
if it is off, and vice versa.