PDA

View Full Version : connecting blindData Attr


aguirre
11-11-2009, 10:03 PM
hi!

i´m trying to create a dynamic blindData, starting very simple, but allready with problems - i actually thought it could work like this:

{
{
string $sel[]=`polyPlane -ch on -o on -w 10 -h 10 -sw 1 -sh 1`;
string $polyShape[]=`listRelatives -s $sel[0]`;
string $polySrc[]=`listConnections -d 0 -s 1 $polyShape[0]`;

string $ballName[]=`polySphere -ch on -o on -r 1`;

//create a template
blindDataType -id 1 -dataType "double" -longDataName "distance" -shortDataName "dist";

//create blind Data for each face
select ($sel[0]+".vtx[0]");
string $faceBlindData[]=`polyBlindData -id 1 -associationType "vertex" -longDataName "distance" -doubleData 0.0`;

connectAttr -f ($ballName[0]+".translateY") polyBlindData1.vertexBlindData[0].distance;
}
}

does anybody know how this could work?

thanks+greetz

CGTalk Moderation
11-11-2009, 10:03 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.