Save threeBrain widgets to local file system
Usage
save_brain(
widget,
path,
title = "3D Viewer",
as_zip = FALSE,
controllers = NULL,
main_camera = NULL,
...
)Arguments
- widget
generated from function 'threejs_brain'
- path
path to save the brain widget
- title
widget title.
- as_zip
whether to create zip file "compressed.zip".
- controllers
NULL(default) to save the control panel as the widget was built, or a named list of control panel values that replace those, so the saved viewer opens with them; for exampleproxy$get_controllers()in a 'shiny' application (seebrain_proxy), orlist("View Layout" = "sliceview-flat")- main_camera
NULL(default) to keep the camera the widget was built with, or a list withpositionandup(numeric vectors of length 3) andzoom(a positive number), so the saved viewer opens with that view; for exampleproxy$main_camerain a 'shiny' application, orlist(position = c(0, 0, 500), up = c(0, 1, 0), zoom = 1.5)- ...
ignored, used for backward compatibility