Giter Site home page Giter Site logo

angjminer / blender_clothing_tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from whyoh/blender_clothing_tools

0.0 1.0 0.0 302 KB

helper scripts for creation of clothing from sewing patterns for the blender cloth physics engine.

License: GNU General Public License v3.0

Meson 2.30% Python 97.70%

blender_clothing_tools's Introduction

blender_clothing_tools

helper scripts for creation of clothing from sewing patterns for the blender cloth physics engine.

the sewing process

note: the terminology between blender and sewing gets a bit collisiony. when we say "seam" below, we're referring to sewing seams, not blender seams!

usage

In blender, copy the shapes from a sewing pattern into planar meshes so they look like they've been cut out of flat material. (I keep the pieces vertical so that they're ready to wrap round a dummy). You need to make sure that any seams have the same number of vertices on each edge that will be sewn together. Join (ctrl-J) all the mesh objects so that they become one object.

TODO - I'd like to add a script to import SVG lines and turn them into a sensible mesh, including matching up the numbers of vertices.

Add a dummy (I use a MB-Lab character) and set it as a collision target. Position the pieces around the dummy where they should be (but keep them vertical for now - it shouldn't adversely affect the sewing process and it makes it easier to adjust things).

Now load the clothing_edge_finder.py script into the scripting window. TODO make this an add-on so you can select it from a menu/shortcut rather than loading and running the script!

Now the actual sewing bit:

  • Go into edit mode and select one vertex from each side of a seam.
  • Run the script.
  • Repeat those two steps for each seam.

It will follow the boundaries of the pieces until it finds a corner, sewing the pieces together as it goes. (It only joins the vertices together with edges - that's how the blender sewing system works.)

If you'd like a seam with gaps (e.g. for a button front) set the "buttons" and "runs" values at the top of the script before running it.

Finally, to join up the sewn seams, enable "cloth" in the physics tab for the clothing object and press the animation play button. The cloth should sew itself up onto the dummy.

TODO - turn this into a proper tutorial so you can see what all the above actually looks like and don't have to go googling how to do all that in blender!

blender_clothing_tools's People

Contributors

whyoh avatar

Watchers

 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.