this should do the trick You need to declare it as a float but as it consists of multiple values you need to add them into an array float $anArray[] = `getAttr lambert1.transparency`; print $anArray[0]; print $anArray[1]; print $anArray[2]; Si