Just started a scene with the new unreal shaders and xgen. Now it's time to work on the shading and finish the whole body :)
Couture is one week old ! And when I'm writing this article, we reached 1699 downloads! Thank you guys and don't hesitate to spread the word, in our world there's still too many 3D artist which are terrified with cloth retopology !
I have two feedback from user that I need to share with you.
However on Linux there is a difference between "\" and "/", I developed coutrure on windows so you might need to change that on the folderPath
You can add this line on line 62 in the coutureUI.py
folderPath = '/usr/maya/201XX/scripts/Couture'
Also if the code to launch couture isn't working on Linux try with this one
import sys sys.path.append('/usr/maya/2016.5/Couture/scripts') import Couture.coutureUI as cUI reload(cUI) cUI.coutureInterface(dock=True)
Be carefull when you're importing a mesh in obj, because maya might carry some unwanted object that will complicate the work of pymel.
When I need to convert a node to Pymel I use the script
And if you have some node with the same name it won't be able to work.
We can see on this example that maya will import in the outliner some groups in maya sets. Simply delete those and you are ready to go !
Thanks to Min-Yu Chang and Travis Smith for the feedbacks !
Here's a video introduction to couture :
This tutorial offers a deep explanation of every point cover in this Wiki
Before talking to you about workflow and interface, I will have a short introduction to the auto-reload feature of Couture.
Each of your action is saved in a node called CoutureDataNode, this node can be found in the outliner if you turn off "DAG objects only". That means that if you save your scene and don't touch this node, you will be able to restart couture exactly where you left it!
That feature is very usefull if you are working on a large garment or you want to go back and change something.
The interface of couture is composed of two main areas : The Outliner and The Pattern Table.
The Outliner will give you a second outliner and will sort every piece of cloth during the 3 phases of the workflow.
Allowing you to quickly find a specific piece at a specific moment.
The outliner also allow you to quickly show/hide/lock/select a group of clothes.
You can also get rig or add new piece of cloth in the tool.
The pattern table contains all the action to perform on a garment in order to have an editable mesh.
During the creation of the tool it was hard to come up with a good way to name the different categories of mesh used by Couture. At the end I came up with "Garment", "Pattern" and "Retopo".
Garment : This mesh is imported straight out from Zbrush or Marvelous. It has the shape that you want to achieve, good UVs but a triangulated topology not suitable for animation.
Pattern : This is the same mesh but flatten. It has the same properties including the vertex index. This mesh will later be use to transfer UVs, create blendshape and drive the wrap.
Retopo : You create this mesh by hand or using any automatical topology algorithm such as Zremesher. This topology is ready for animation and contain mostly quads. The sape of each piece of cloth must match the shape of the pattern meshes. This meshes will later be drived by a wrap on a pattern meshes allowing you to edit his topology in 2D ans 3D space.
Start maya, load couture and import a garment. First step is to have a look to your UVs, sometimes when it comes from Marvelous, the UVs are nice but pack on top of each other :
It's important to have a clean UV layout, otherwise later when you will work on your Retopo, it will be less convenient. Here is a exemple of good layout:
Luckily for you, the first button in the couture interface "UV layout selected" allow you to layout your UVs.
It's also the good moment to set the scale of your garment in your scene.
Then select your garments and clicK on the button "Load garments", now you are ready to start and go on the Pattern table. If you have selected a mesh by mistake, you can delete or add a new piece of garment. You can also reset the import by selecting a group a new garment, Couture will ask you if you want to reset your selection, then click on the button and you are ready to go.
Each time you progress in the workflow, you will access new shortcut for each phase of Couture.
Eye will allow you to quickly show or hide.
Lock will allow you to lock or unlock the selection.
Arrow will allow you to select a whole group of mesh.
You can unlock the garments shortcuts with the button "Load garments". You can unlock the Pattern shortcuts with the button "Flatten garments". You will unlock the Retopo shortcuts with the button "Pairing flatten geometries".
Couture will read the UVs of your garments and move every point of your mesh according to the U(X) and V(Y) coordinate.
How to solve an error with the flatten garments process ?
If the mesh has non unwrap UVs, this step won't work and couture will raise an error.
Even if your model seems to have UVs and looks good, it can still contain mistakes. You can learn more about this subject on this page: Mesh quality.
Then it's your turn to work for couture, you will have to create a retopology of your pattern that match the shape of each pattern.
However to ease this step, Couture offers you some shortcut to speed up your workflow.
You are free to create this topology as it pleases you. You can export the flatten geometry and perform this step in another DCC, for exemple you can use ZBrush and the Zremesher feature. But you can also use the modeling toolkit.
Notice that you have two export options "merged" or "separated". You can also export a simple "FBX" or "OBJ" but notice that you also have a "GoZ" button. Goz must be pre-installed on your computer.
When you are ready to go, you have two options once again, "Import retopo" and "Select retopo".
If your topology is already in the scene, use the "select retopo". If you need to import your result from Zbrush, use the button "Import retopo".
It's important to check the quality of your retopologized mesh, especially if it comes from Zremesher, you can learn more about the process here :Mesh quality.
Normally, if you are using a similar workflow, you should create a blendshape between two meshes (garment + pattern) and then a wrap between 2 other meshes (pattern + retopo). You would have to carefully hand pick each meshes and it could take quite a long time if you have a garment with a lot of pieces.
Couture already know each pair of garment and pattern because they share the same name. Using the pivot position, Couture will guess a pair between a pattern and a retopo mesh.
To perform this step, simply hit the Pairing flatten geometries, Couture will go through every mesh and update the UI and all the other function for every match.
If something goes wrong (I invite you to read this page Mesh quality ), Couture will allow you to go back to the selection/import retopo and also redo a new pairing.
However, you can also use the little hand button a create a pair manually.
This button will automatically transfers UV from your pattern to your knew retopologized mesh. A precious time and quality saving trick for your final mesh !
This button will create a blendshape between each garment and pattern.
Use the slider to activate every blendshape of your scene at the same time.
The little button next to this slider will open a window that allow you ton control each blendshapes individually.
This button will create a blendshape between each pattern and retopo mesh. Allowing you to move your retopo from a 2D space to a 3D space.
This button will create new normals for each mesh selected. When you create your retopo mesh it will certainly come with normals from a flat 2D surface which can look odd on 3D. This button will allow you to display your mesh with brand new normals !
The first button allow you to select one or several retopo cloth that you want to edit. The selected meshes will turn to green and now you are ready to perform any modification that you like.
Then, if your are satisfied with your edits or if you want to cancel your modifications, you have two buttons that will open a prompt message allowing you to chose what action you desire to perform.
During the workflow, Couture will perform a series of calculation and edition of each mesh. You're importing mesh from other softwares such as Marvelous or Zbrush. Even if a model appears as perfectly normal, those software might export issues on the mesh.
Most of the time the mesh is created with duplicated vertices. Have look to this exemple :
The mesh contains 210021 vertices, but when every vertices is selected, the total is only 29756. This case will break the flatten garment feature because those extra vertices has no UV
Another way to identify this error is to perform a center pivot on a mesh, if there's unnecessary vertices, maya will fail to center the pivot:
This error was found on a Zremeshed mesh.
Use the merge vertices feature with a small threshold, this will get rid of the unwanted vertices.
You can also use ZBrush and perfom a Decimation to create a new topology, for exemple for the part which has connected vertices that you don't want to merge, on a belt for exemple.
Download the package on gumroad. Simply put the content of the package in your maya'scripts folder, make sure that the folder is named "Couture".
You can use this code in the script editor or create a shortcut in your shelf.
import Couture.coutureUI as cUI
In your folder Couture you will find a folder named "shelf". Open the file "shelf_Couture.mel" in a text editor, then change every images path to fit your directory path.
Default path is :
Then in Maya, go to your shelf and use the button "Load Shelf" to installl the shelf. Restart Maya and you are ready to go !
Welcome to the Couture's documentation
Thank you for dowloading and installing Couture.
First of all thank you for all kind words and the likes about this little tool :)
I received to many messages and I won't be able to anwser every mesasage.
I may have shown you that too quickly and to be honest I didn't expect such a great reaction. I still have few issues to correct before the beta (Otherwise I will have feedbacks that I'm already aware of).
My goal is to start the beta during the next week-end.
I've created a github for this, it will be easier to track the bugs, release the new versions etc ..
I had way too much answers for the beta, I won't be able to answer to everyone (otherwise, it's means less time working on the code). But the release will come shortly after that ;)
Here is my first blog post ! And it's for a pretty good new :)
I had this script on my shelf for months, but now I'm almost ready to release it :)
This is a simple script that ease the clothes retopology workflow.
Couture will take care of all the redundant tasks (create blendshapes, wraps, etc..) that you can encounter when you're trying to have a nice and clean mesh from a scanned garment or from Marvelous Designer. Well it might sound a bit simple but when you have a garment with hundred of piece of cloth, I really hope that this tool will be very handy !
I looking for some beta testers, who can tell me if everything is working correctly before a free release in few weeks. Ping me by email if you want to try, however I might not have the time to answer to everyone.
I wrote this tool in python, mostly pymel but also some Maya API thanks to my good friend Rémi Deletrain.