R/create_blender_frontmatter.R
create_blender_frontmatter.Rd
Create a Blender rendering script with standard beginning boilerplate
create_blender_frontmatter( imports = c("bpy", "mathutils", "math"), delete = c("Cube", "Camera", "Light"), before = NULL, after = NULL )
imports | A character vector of Python packages to import at the start of the script. Packages are imported without aliases, so that script-building functions may always expect to use the full package name. Defaults to `bpy`, `mathutils`, and `math`. Set to `NULL` to not import any packages. |
---|---|
delete | A character vector of objects in the default Blender scene to delete. Defaults to all objects in the default scene (`Cube`, `Camera`, and `Light`). Set to `NULL` to not delete any objects. Note that not deleting the initial cube may result in your file failing to save due to a known bug in Blender. |
before | Optionally, a character vector containing lines of code to add before package imports. |
after | Optionally, a character vector containing lines of code to add after object deletion. |
A length 1 character vector containing the introductory boilerplate for a Blender Python script.