you're dealing with a string array (list of strings) so you need to supply the index as well. eg: float $fVtxPos[] = `xform -q -ws -t ($sObjName[0] + ".vtx[0]")`;