makeMovie: Make a Movie

Description Usage Arguments Details Value Author(s) See Also

View source: R/director.R

Description

Make a movie from an XML script file.

Usage

1
2
3
4
5
6
makeMovie(filename,
          wd=paste0(gsub("[.]xml$", "", filename), "-movie"),
          TTS=espeakTTS(),
          world=realWorld,
          validate=TRUE,
          clean=FALSE) 

Arguments

filename

The name of an XML script file.

wd

A path to a working directory, where all files will be created.

TTS

An object that can turn text into audio; see TTS.

world

The world that the movie will be set in; see realWorld.

validate

Should the script be validated against a DTD.

clean

A logical indicating whether to erase the working directory before beginning recording.

Details

The XML file is assumed to have the following structure:

The package contains a DTD for the script structure (see the DTD directory in the installed package) and, if validate is TRUE, the script is validated against that DTD.

Value

A list containing the path to the complete final video, plus paths to individual scene video files.

Author(s)

Paul Murrell

See Also

TTS, realWorld.


pmur002/director documentation built on Feb. 18, 2021, 10:23 p.m.