Code Monkey home page Code Monkey logo

autorigger's Introduction

AutoRigger 2.0

AutoRigger is an automated rig builder used in Maya. It currently supports procedural rigging based on modules as well as pre-made template for biped, quadruped and chain.
Chain Demo | Quadruped Demo | Biped Demo

About The Project

autoRigger

The AutoRigger tool started out as my practice for maya scripting back in late 2018. But Little by little, I started to implement new rigging knowledge on to it. After years of expansion, it became my rigging tool kit which handles a lot of the automation in general rigging process.

Getting Started

Prerequisites

Launch

  1. Unzip the autoRigger.zip package under %USERPROFILE%/Documents/maya/[current maya version]/scripts/ or a custom directory under PYTHONPATH env variable.

  2. Run through script editor:

    from autoRigger import autoRigger
    autoRigger.show()

Usage

The autoRigger is modular and very straight forward to use; Each item on the left is referred as a rig object, you create them in the scene individually and piece together to build the final rig; there are also pre-made template for standard characters like biped and quadruped.

note: autoRigger isn't a skinning tool

Create Guide

  • choose a rig object, and then enter specific properties on the right-side field, finally click guide.

  • this creates a guided locators or the rough joint placement of the rig. you are now free to move, rotate, scale the locators around to better match the target mesh.

Build Rig

  • when you are satisfied with the guide placement, click build. it will generate all the joints, controllers and constraints.
  • The next step if for you to skin your character/creature using anything you prefer

interface

Scripting Example

the rig object and all of its components can be accessed through scripting with ease, as each rig object is a class inheriting the abstract bone class.

To instantiate a rig object, build guide and rig

from autoRigger.constant import Side
from autoRigger.chain import chainEP

test_chain = chainEP.ChainEP(
   name='rope',
   side=Side.LEFT,
   segment=20,
   curve='curve1',
   cv=10
)

test_chain.build_guide()
test_chain.build_rig()

Access rig object properties:

>>> test_chain.name
output: rope
>>> test_chain.side
output: Side.LEFT
>>> test_chain.type
output: chain
>>> test_chain.scale
output: 1
>>> test_chain.components

# this is used mostly in template such as biped or quadruped
# which will yield all rig sub-components
output: []

Access rig object nodes in maya scene

# shared maya nodes
jnts = test_chain.jnts
root_jnt = jnts[0]
top_jnt = jnts[-1]

"""
subsequently:
['chain_l_rope0_jnt']
['chain_l_rope19_jnt']
"""

ctrls = test_chain.ctrls
locators = test_chain.locs
offset_group = test_chain.offsets

# chain specific maya nodes
test_chain.clusters
test_chain.guide_curve
test_chain.curve
test_chain.cvs

Roadmap

  • integrate facial rigging
  • bird template
  • vehicle template
  • refactor quadruped leg modules

Versions

Update 2.0 (current)
  • rig object abstraction
  • added chain modular rigging package
  • added dynamic property widget
Update 1.2 (01/05/2021)
  • PEP8 code re-formatting
  • updated naming convention
  • updated user-interface
Update 1.1 (04/08/2020)
  • added quadruped template rigging
  • added biped template rigging
Update 1.0 (10/19/2019)
  • re-built autoRigger as a modular rig system
  • updated user-interface
Update 0.4 (04/21/2019)
  • integrated body and face rigging
  • added face picker
Update 0.2 (03/22/2019)
  • added FK/IK to limb
  • added flexible spine control
Update 0.1 (12/29/2018)
  • initial release of the autoRigger tool
  • included one-click rig building
  • included default skin binding

autorigger's People

Contributors

leixingyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

autorigger's Issues

大佬好,生成chain-ikfk 的时候报错

报错信息为:

Warning: Too many coincident knots. Maximum allowed is degree

// Error: curveInfo1 (Curve Info): No valid NURBS curve
// Error: curveInfo1 (Curve Info): No valid NURBS curve
// Error: chain_l_unknownik_curve_info (Curve Info): No valid NURBS curve

Warning: "chain_l_unknown0ik_ctrlStretch": basicExpression has encountered a divide by zero. Result is unpredictable.

// Error: chain_l_unknownik_curve_info (Curve Info): No valid NURBS curve
QQ截图20230509175722

error: no module named 'Qt'

Hello,
I have tried to apply the script according to the instructions, but I'm getting the error: "No module named 'Qt'".

I'm using Maya 2023 and the Python version is 3.9.7.

Thank you in advance! ^^

import enum module error

Error: ImportError: file C:/Users/xxx/Documents/maya/2020/scripts\autoRigger\constant.py line 3: No module named enum

No Module named enum on python 3

Hola! Just wanted to try this rigging tool and I have run across a problem. I followed the instructions in installing the scripts and have updated my Python to the latest version however I keep getting this error:

# Error: ImportError: file H:/Documents/maya/2020/scripts\autoRigger\constant.py line 3: No module named enum

I am using Maya 2020. Thanks!

Qt module not present

Qt module appears to be missing from the repo.

# Error: ModuleNotFoundError: file /Applications/Autodesk/maya2022/Maya.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: No module named 'Qt' #

# Error: AttributeError: file <maya console> line 2: module 'autoRigger.autoRigger' has no attribute 'show'

I'm trying to run this in the script:
from autoRigger import autoRigger autoRigger.show()

However, I'm getting this error, as stated in the title:

Error: AttributeError: file line 2: module 'autoRigger.autoRigger' has no attribute 'show'

I checked that the folder is named autoRigger, and that it's in the correct directory ( User/Documents/maya/2023/scripts ). I'm just not sure why it's not working or what I'm doing wrong

Custom Limb not building

Im trying to build ears for a rabbit. But nothing happens when I click on the custom limb's build button.
No_Build

What am I doing wrong? ModuleNotFoundError: No module named 'autoRigger'

Once I'm trying to run the script

from autoRigger import autoRigger
autoRigger.show()

I get this error:
# Error: ModuleNotFoundError: file C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py line 142: No module named 'autoRigger' #

no module named autoRigger

i tried to install the script it gave this error .no module named autoRigger
im running maya 2022.python 3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.