Introduction

Installation

There are two pieces to Skein:

  1. The Bevy crate
  2. The Blender addon

The Bevy Crate

cargo add bevy_skein

Add the plugin to your application. Using default sets handle_brp to true which lets Skein set up the appropriate BRP configuration. If you want more control, set this to false (or disable default-features) and set up the RemotePlugin and RemoteHttpPlugin yourself. Skein currently only uses the default ports and disables BRP on wasm.

use bevy::prelude::*;
use bevy_skein::SkeinPlugin;

fn main() {
    App::new()
        .add_plugins((
            DefaultPlugins,
            SkeinPlugin::default(),
        ))
        .run();
}

The only thing you need to do is set up the plugin. Skein operates on the GltfExtras that the Blender addon sets up in the .gltf/.glb file, so spawning a scene from a .gltf exported with the addon data will "just work".

commands.spawn(SceneRoot(asset_server.load(
    GltfAssetLabel::Scene(0).from_asset("my_export.gltf"),
)));

The Blender addon

Auto-Update Installation

The "auto-update" installation will use the "Static Registry" hosted on this website to check for extension updates when Blender starts up. This makes it easy to stay up to date.

  1. Drag this link onto Blender to add the registry

    pre-drag

    post-drag

  2. A dialogue will pop up indicating an unknown repository.

    bevy_skein is distributed via a repository on this site, so you will need to add the json file that lists the skein addon by clicking "Add Repository".

    unknown repository

    This will lead to another popup that allows clicking "Check for Updates on Startup", which will enable checking for Skein updates when starting Blender.

    add new repository

  3. After adding the repository, go to Preferences

    preferences

  4. Under Get Extensions you can search for skein and click Install

    get extensions

  5. After clicking Install, you can view metadata about the extension, including the version and the repository it was installed from.

    installed

Manual Installation

Using manual installation will lock your installation to the version you download with the zip file. It will be your responsibility to keep it up to date. This is also a viable install strategy for local development.

  1. Download the zip file from the latest blender addon release on GitHub
  2. Open Blender, navigate to Edit -> Add-ons addons
  3. Drag .zip file onto addons list and "Install from Disk" install from disk
  4. Bevy Skein should be installed in the list bevy_skein is installed

Addon Preferences

Tip

There is a debug option in the addon preferences. If you want to develop against the addon you can enable this to see a bunch of output (note: requires running Blender from terminal)

debug preferences

Previous
Getting started