[go: nahoru, domu]

Skip to content

zaucy/rules_blender

Repository files navigation

rules_blender

Bazel rules for rendering .blend files with Blender

Install

Add this to your WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# rules_blender requires bazel_skylib on windows
http_archive(
    name = "bazel_skylib",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
    ],
    sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
)

load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()

# Replace COMMIT with the latest commit hash from rules_blender main branch
http_archive(
    name = "rules_blender",
    strip_prefix = "rules_blender-COMMIT",
    urls = ["https://github.com/zaucy/rules_blender/archive/COMMIT.zip"],
)

load("@rules_blender//:repo.bzl", "blender_repository")
# NOTE: If you do not set the blender_repository name to "blender" you will have
# to pass in your `blender_executable` for each `blender_render` rule
blender_repository(name = "blender")

Rules

See documentation

License

MIT

About

Bazel rules for rendering .blend files with Blender

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published