npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

blender-iks-to-fks

v2.0.11

Published

A Blender script that takes a mesh and armature that use IKs and other non-deformation bones and creates a new mesh and armature that uses only FK bones

Downloads

63

Readme

blender-iks-to-fks npm version

A Blender Addon that takes a mesh and armature that use IKs and other non-deformation bones and creates a new mesh and armature that uses only FK bones.

example gif

Background / Initial motivation

I wrote a post a few months ago about converting IKs and constraints into FKs in Blender. The process was manual, tedious and very error prone. To the point where I would push of and procrastinate rigging because I dreaded the IK -> FK conversion.

This script automates the IK / Constraint bones -> FK bones conversion process.

It does this by generating a new mesh and FK rig that copy the animations of your original mesh and rig, but without the IK / Constraints.


I wrote a reddit comment attempting to explain IK vs FK at a five year old level.

Benefits

  • Unlike Bake Action, blender-iks-to-fks does not create any additional keyframes
  • Your original mesh remains unmodified, preventing you from accidentally losing / overwriting your work

Supported Blender Versions

We currently support Blender 2.80 as of blender-iks-to-fks v2.0.0.

For Blender 2.79 support use the 1.3.4

Install

There are two ways to install the addon into Blender.

  1. By running a script
  2. OR by manually downloading and adding it into Blender

Install via script

This method requires that Blender is added to your $PATH

# This installs the script in Blender and saves it to your user preferences
npm install -g blender-iks-to-fks && ik2fk --install

Manual Download Instructions

Manual installation instructions

Usage

blender-iks-to-fks will delete all non-deformation bones when creating your rig, so be sure to uncheck use deform for your IK and control bones. You can do this in the Bone panel while in Edit Mode.

In Blender Window:

  1. Select your mesh in Object Mode
  2. Press Space
  3. Search for 'Convert IKs to FKs' and select it
  4. You should now have a new mesh and armature that use FKs

Via Blender CLI

You can run this addon via the Blender CLI as part of an automated conversion process. Here's how:

blender my-blender-file.blend --python `ik2fk`

Via bpy.ops

You can run this addon in the Blender Python Console or via any python script by running

bpy.ops.rigging.iktofk()

If the currently active object (bpy.context.active_object) is an armature then blender-iks-to-fks will run on that armature. Otherwise it will run on the first armature that it finds in your Blender scene.

You can convert multiple armatures by iterating over them, setting them at the active object and then calling bpy.ops.rigging.iktofk()

ik2fk CLI

Usage

  $ ik2fk
    # Returns the filename of the Blender addon. Useful for running the addon via CLI
    # i.e.
    #   blender my-model.blend --python `ik2fk`

  $ ik2fk --help
    # Prints some help text on how to use this command

  $ ik2fk --install
    # Installs and enables the addon and then saves it to your Blender user preferences
    # Note that you must have Blender in your $PATH in order for this command to work
    #
    # You can also follow instructions to install it manually https://github.com/chinedufn/blender-iks-to-fks#install

Options

  -h, --help            -> Get help text about using the blender-iks-to-fks CLI

  -i, --install-blender -> Install the addon and save it in your Blender

Running Tests

npm run test

Have an idea? Confused?

Open an issue and lets sort it out!

See Also

  • Landon - tooling for exporting data from Blender such as meshes and armatures.

License

(c) 2017 Chinedu Francis Nwafili. MIT License