Git Product home page Git Product logo

muzimuzimuzimuzi / maya-spline-ik Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robertjoosten/maya-spline-ik

0.0 0.0 0.0 4.34 MB

Create a Spline IK setup on a curve. The setup features variable stretch and squash, variable rotation and sliding on curve.

Home Page: https://robertjoosten.github.io/maya-spline-ik/

License: GNU General Public License v3.0

Python 99.65% AMPL 0.35%

maya-spline-ik's Introduction

maya-spline-ik

Create a Spline IK setup on a curve. The setup features variable stretch and squash, variable rotation and sliding on curve.

Installation

  • Extract the content of the .rar file anywhere on disk.
  • Drag the splineIK.mel file in Maya to permanently install the script.

Usage

A button on the MiscTools shelf will be created that will allow easy access to the ui, this way the user doesn't need to worry about any of the code. If user wishes to not use the shelf button the following commands can be used.

Command line:

from splineIK import SplineIK

sik = SplineIK()
sik.create(
    name,
    curve,
    numJoints,
    upDirection="y", 
    worldUpDirection="y", 
    forwardDirection="x"
)

Display UI:

import splineIK.ui
splineIK.ui.show()

UI example

Note

The Spline IK module works on a curve and generates an joint chain that sticks to it's position on the curve. This means that stretch and squash will only occur in the areas that manipulates as opposed to it scaling as a whole.

Stretch and Squash demo

The other benefit of using this module over a regular spline IK is the fact that the twist is divided over the controls that are generated and not just limited to the beginning and end.

Partial Twist demo

Shift demo

Apart from the main settings, the control colour, position and orientation is adjustable. This can be done on the Spline IK class before the create function is called.

  • controlShape

  • rootControlShape

  • slideControlShape

  • tangentControlShape

  • controlColour

  • rootControlColour

  • slideControlColour

  • tangentControlColour

  • orientToCurve

  • orientRootToCurve

maya-spline-ik's People

Contributors

robertjoosten avatar

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.