ftt_add_sapling: Add code to add primitives to a Blender script

Description Usage Arguments Value

View source: R/ftt_add_sapling.R

Description

This function generates code that will, when run inside Blender, create saplings (using the "add curve sapling" addon) to a scene.

Usage

1
2
3
4
5
6
7
8
ftt_add_sapling(
  script,
  object,
  id_code = NULL,
  id_key = NULL,
  location = NULL,
  ...
)

Arguments

script

The Python script to append the generated code onto.

object

An object inheriting from mvdf_obj which will be used to calculate the x, y, and z positions for each primitive. One primitive will be created for each row of mvdf(object).

id_code

x

id_key

x

location

x

...

Additional arguments to pass to the sapling creation call. Currently ignored.

Value

A length 1 character vector containing the Blender Python script with code for creating saplings added.


mikemahoney218/blender-forthetrees documentation built on Dec. 24, 2021, 1:27 a.m.