Guide 1 Docs 2 Reference 3

Function of models

models.new

Makes a model named name from the parts fn builds and returns it. Call it at the top of the script; from a callback it is an error.

models.new(name: string, fn: (m: ModelBuild) -> ()) → Model

Parameters

namestringrequired
fn(m: ModelBuild) -> ()required

Returns

Model

Used in