Description Usage Arguments Value
View source: R/create_blender_frontmatter.R
Create a Blender rendering script with standard beginning boilerplate
1 2 3 4 5 6 | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.