Substance Painter
In this start to finish texturing project within Substance Painter we cover all the techniques you need to texture the robot character.
# 1 17-08-2015 , 08:41 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374

Constrain nHair follicle to nCloth

I'm trying to get a transform thingy to follow an nCloth mesh. Making use of a hair follicle has been used many times for this sort of thing (e.g. attaching buttons), but for some reason I can't get it to work.

Can someone verify for me whether (in Maya 2015 or 2016) an nHair follicle will follow a dynamically simulating nCloth?

I'm following this tutorial, which should work: https://knowledge.autodesk.com/suppor...ipper-htm.html
Except in the tutorial's case, they're using a classic hair follicle I believe. With my reproduction, the follicle doesn't move.

This page talks about nCloth and nHair but they don't say explicitly that the follicle will follow: https://knowledge.autodesk.com/suppor...18CBF-htm.html

In all my tests the hair curve itself follows the mesh, but the follicle stays static.

# 2 18-08-2015 , 07:52 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
Could anyone verify this?
1) Create sphere
2) Convert to nCloth (should fall down)
3) Add hair to it
4) Playback

Is this expected behaviour? Shouldn't the follicles follow?

Attached Thumbnails
# 3 20-08-2015 , 08:51 AM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
Stwert not sure this will help you but you can create two spheres one to have the hair system the other two have ncloth then use the wrap deformer to parent the hair to the ncloth...................dave




Avatar Challenge Winner 2010
# 4 20-08-2015 , 08:53 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
Thanks Dave, that might get me somewhere. The problem is not necessarily that the hair doesn't follow (it does) but that the follicle nodes don't update their transform channels. I don't actually need the hair, just a node that's locked to a spot on the cloth to which I can parent or constrain other stuff.

I'm mostly confused because the zipper tut I posted above clearly works this way, and now nParticles somehow have stopped behaving that way. If I create a bend deformer or otherwise deform the geo, the follicles do follow, just not with cloth.

# 5 20-08-2015 , 09:31 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472




Avatar Challenge Winner 2010
# 6 20-08-2015 , 10:13 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
I think I found that script earlier which by reading seems to do exactly the method I'm trying to set up by hand. So it will be interesting to see whether the script works and what it sets up.

# 7 25-08-2015 , 02:21 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
I may have found a solution (which is weird because I thought I tried this earlier). Setting up the nHair automatically connects the follicleShape and the outputStartCloth mesh, even if the outputCloth is selected.

So, I just rewired the connections (.outMesh > .inMesh and .worldMatrix[0] > .inputWorldMatrix) and the follicle now follows. I though it might screw up the simulation, but it seems to behave the same as before... for now at least.

The below image has the outputStartCloth mesh at the top (the input mesh) and the outputCloth at the bottom, with follicle AND hair attached.

Attached Thumbnails
# 8 25-08-2015 , 02:31 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
So it looks like the script you shared, Dave, also does the same thing. Create a follicle and manually connect the out mesh (the script is actually ignorant of the mesh type, whether start mesh or output mesh, I think) and connect those two attributes together. So the script works.

I get the sense that the regular nCloth & nHair behaviour has changed. I wonder what and why?

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads