rules_blender

Rules

blender_export

load("@rules_blender//blender:defs.bzl", "blender_export")

blender_export(name, data, outs, args, blend_file, out_dirs, script)

A Bazel rule for exporting scenes from a .blend file.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
dataAdditional files associated with the .blend file.List of labelsoptional[]
outsOutput files produced by this target.Dictionary: String -> Stringoptional{}
argsAny additional arguments to provide tot he export scriptDictionary: String -> Stringoptional{}
blend_fileThe .blend file to export from.Labelrequired
out_dirsOutput directories produced by this target.Dictionary: String -> Stringoptional{}
scriptThe exporter script.Labelrequired

blender_test

load("@rules_blender//blender:defs.bzl", "blender_test")

blender_test(name, data, blend_file, script)

A Bazel test rule for performing checks on a .blend file.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
dataAdditional files associated with the .blend file.List of labelsoptional[]
blend_fileThe .blend file to export from.Labelrequired
scriptThe exporter script.Labelrequired

blender_toolchain

load("@rules_blender//blender:defs.bzl", "blender_toolchain")

blender_toolchain(name, blender, bpy, is_local)

Define a toolchain for Blender rules.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
blenderThe path to a Blender binary.Labelrequired
bpyThe label to a Blender Python API, bpy target.Labelrequired
is_localWhether or not the toolchain is backed by a host installed Blender.BooleanoptionalFalse