GithubHelp home page GithubHelp logo

joss13aws / maya-combine-separate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from volodinroman/maya-combine-separate-tool

0.0 0.0 0.0 23 KB

A python module for Autodesk Maya that shows a way to separate a combined object back to original ones (contained 2 or more shells) preserving skinning that was applied to the combined object.

License: MIT License

Python 100.00%

maya-combine-separate's Introduction

maya_combineSeparate

A python module for Autodesk Maya that shows a way to separate a combined object back to original ones (contained 2 or more shells) preserving skinning that was applied to the combined object.

It uses standart python libraries, maya.cmds, maya.mel, maya.OpenMaya and maya.OpenMayaAnim

How it works:

  • First step is to select objects that need to be combined and create an instance of objectCombine class that gathers all data from the original objects.

  • Next step is combining method that runs a mel script with a custom combine function.

  • After combining a user need to create a joint system and assign a skin deformer to the combined object using these joints.

  • Last step is to run methods that collect data from skinCluster assigned to the combined object, separate this object back to original meshes and recreates all the skinning weights in a newly created skinClusters for each separated mesh.

Usage:

Unzip the project to your Maya Python path folder

Import the script

import combineSeparate.main as combSep

Select objects You want to combine. They will be combined to the first selected object

Create an instance of objectCombine class and run combine

instance = combSep.objectCombine()  #collects all data needed for combining and separating
instance.doCombine() #run combine

Create joint system and assign skin deformer to the combined mesh where these joints are influence objects

Back to original meshes

instance.doCollectSkinData_deleteSkin() #gather all data needed for restoring skinning from the combined object
instance.doSeparate() #separate object into parts
instance.doRecreateSkinning() #recreate skinning for separated objects

maya-combine-separate's People

Contributors

volodinroman 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.