GithubHelp home page GithubHelp logo

kalemas / onionskinrenderer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ranzovin/onionskinrenderer

0.0 0.0 0.0 170 KB

This is an Onion Skin Renderer for Autodesk Maya

License: MIT License

Python 95.50% HLSL 4.50%

onionskinrenderer's Introduction

This is a fork of Christoph Lendenfeld's onion skin renderer with a few bug fixes and minor additions of my own. Lendenfeld's original readme is reproduced in it's entirety below.

-- Raf Anzovin

OnionSkinRenderer

Hello there, I am a technical animator or animTD or whatever you want to call it.

I started writing this script after I finished a 2D animation project. Going back to 3D I really missed the onion skinning features of 2D applications and wondered if it wouldn't be possible to have it in 3D. I know there are solutions like bhGhost but they always display the same frame. I wanted to have something like the ghosting functionality in maya, but unfortunately this doesn't work with skinned meshes.

With my limited programming skills i jumped headfirst into the Maya API and probably cracked my head doing so. It really took me a lot of patience and learning to wrap my head around the maya api.

It's also on gumroad, so if you like it please consider buying it for a few bucks. https://gum.co/IDfYg

Compatibility

It is now tested and working with 2016, 2017, 2018 and 2019. Due to time constraints I will not work on this anymore, unless there are critical bugs that appear from the latest updates.

How it works

This plugin is an extension to the standard viewport2.0 renderer. When Maya Renders a frame, a pass with the specified objects is created and stored. If you now tell the plugin to display information from another frame, it checks if that exists and if yes, draws it above the geometry.

Pros

  1. Independent of geometry complexity. Any polycount renders at the same speed.
  2. Relative Onion Display. It is easy to display the Onion Relative to the current position because it is all buffered.
  3. Actual display of the shape of the character on a different frame. Maya's internal onion skins (ghosting) cannot display skinned meshes, so you have to parent locators to it. Which is fine for tracking arcs but not to see how the shape moves through the scene.

Cons

  1. Since the onion skins are buffered when the frame is rendered, moving the camera or any object invalidates them.
  2. Buffering alot of onion skins costs VRAM. If VRAM is full RAM is used which is a huge performance hit. That said, it shouldn't be an issue on any modern cards. My 3gb VRAM get me about 700 frames buffered on a 1080p screen.

How to install

Just copy the correct version to your scripts folder Windows: C:\Users[username]\Documents\maya\scripts Mac: /Users/[UserName]/Library/Preferences/Autodesk/maya/2019/scripts

so it should be like C:\Users[username]\Documents\maya\scripts\onionSkinRenderer[all the files]

How to use

Open the UI with

import onionSkinRenderer.controller as ctl
ctl.show()

Docking support has been removed from the latest version because it was too unstable on Maya 2019

Select an object and add it to Onion Skin Objects Hit the toggle renderer button. For relative display, activate a frame with the 'v' button. For absolute add current or type a number. Scrub and as soon as the target onion is buffered it should be displayed.

onionskinrenderer's People

Contributors

viele avatar ranzovin avatar kalemas 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.