Write a simple Amira script

write_amira_script(lines, file = tempfile(fileext = ".hx"))

Arguments

lines

Tcl code (not including Amira's header line)

file

Output file (defaults to a temporary location). Should normally have suffix '.hx'.

Value

The path to the output file (invisibly)

Examples

open_amira(opensc<-write_amira_script("echo Hello!"))
#> [1] "/var/folders/w1/l582m69d1l79c27h4f4mh4h80000gn/T//RtmpWQXO4A/filea1ce517e620b.hx"