View Full Version : djrivet tool

09-17-2009, 10:54 PM
I just got it off highend3d, and when I use this tool it doesn't place the folicle anywhere near the object? I am trying to put an object on my guys chest, it is skinned, and it puts the folicle on the foot. I did an automatic UV to make the UVs not be overlapping, but the folicle still goes on his foot.

Anyone got any ideas on this?

09-18-2009, 12:54 AM
The tool works on the basis of hair follicle. Hair follicle need proper UV layout to work. Maybe you need to layout the UV before working with this tool.

09-18-2009, 01:37 AM
Thats why I did the auto mapping for the UVs, but it didn't help any. I got my hands on another rivet tool that uses a locator instead and it works like a charm, so just gonna use that one instead.

09-22-2009, 08:04 PM
ive had the same problem in the past.. wrote a quick script that is based on follicles.. feel free to try it

//Sean Kealey
//Create Follicle Constraint on selected Vert
//to run script type: sk_Vert2Fol;
//usage: select Vert(s) then run script

global proc sk_Vert2Fol()

//get selected verts
string $vtxSel[] = `ls -sl`;

// converts to uv and find position
string $uvSel[] = `ls -flatten -sl`;

for ($eachUV in $uvSel)
float $vertPos[] = `polyEditUV -query -uValue $eachUV`;
float $u = $vertPos[0];
float $v = $vertPos[1];

//get the object name of the selected uv
string $selObj[];
int $getSelObj = `tokenize $eachUV "." $selObj`;
string $SelObjShape[] = `listRelatives -shapes $selObj[0]`;

//create Fol
string $FolShape = `createNode -name ($selObj[0]+"_folShape")"follicle"`;
string $Follicle[] = `listTransforms $FolShape`;

//Connect Fol to object

connectAttr ($SelObjShape[0] + ".outMesh") ($FolShape + ".inputMesh");
connectAttr ($SelObjShape[0] + ".worldMatrix[0]") ($FolShape +

connectAttr ($FolShape + ".outTranslate") ($Follicle[0] + ".translate");
connectAttr ($FolShape + ".outRotate") ($Follicle[0] + ".rotate");

setAttr ($FolShape +".parameterU") $u;
setAttr ($FolShape +".parameterV") $v;



CGTalk Moderation
09-22-2009, 08:04 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.