Welcome to the forum, feel free to ask questions here.
int $vtxCount[] = `polyEvaluate -v pCube1`; for($i = 0; $i < $vtxCount[0] ; $i++){ float $c1[] = `pointPosition -l pCube1.vtx[$i]`; float $o1[] = `pointPosition -l pCube2.vtx[$i]`; float $d1 = sqrt( ($o1[0] - $c1[0]) * ($o1[0] - $c1[0]) + ($o1[1] - $c1[1]) * ($o1[1] - $c1[1]) + ($o1[2] - $c1[2]) * ($o1[2] - $c1[2])); if ($d1 > 0.01) { //setAttr remapColor1.inputMin = $d1; $d1 $d1 $d1 ; works only when I press "evaluate button" //direct connection remapColor1.inputMin = $d1; } }