Controls to use with playwidget().
These are setter functions to produce actions in a Shiny app, or in an animation.
subsetControl(value = 1, subsets, subscenes = NULL, fullset = Reduce(union, subsets), accumulate = FALSE) propertyControl(value = 0, entries, properties, objids, values = NULL, param = seq_len(NROW(values)) - 1, interp = TRUE)
The value to use for input (typically
input$valuein a Shiny app.)
A list of vectors of object identifiers; the value will choose among them.
Objects in the subscene which are not in
fullsetwill not be touched.
The subscenes to be controlled. If
NULL, the root subscene.
TRUE, the subsets will accumulate (by union) as the value increases.
- entries, properties, objids
Which properties to set.
Values to set.
Parameter values corresponding to the rows of
Whether to use linear interpolation between
subsetControl produces data for
display subsets of the object in one or more subscenes. This code will not
touch objects in the
subscenes if they
are not in
fullset defaults to the union of
all the object ids mentioned in
subsets, so by default if an id is
not mentioned in one of the subsets, it will not be controlled by the slider. If
value is specified in R code, it will be a 1-based
index into the
subsets list; when specified internally
will be used.
propertyControl sets individual properties. Here the row
values is determined by the position of
These functions return controller data in a list of class