Difference between revisions of "ConvertStrToVector MEL"
From scripting
(Created page with " global proc vector ConvertStrToVector(string $CurStr) { //0001D LLC 2015 Nick Pisca //string $CurStr = "234.32,332.043"; string $DestUVs[]; $numTokens = `tokenize $Cu...") |
(No difference)
|
Latest revision as of 05:16, 22 April 2017
global proc vector ConvertStrToVector(string $CurStr) { //0001D LLC 2015 Nick Pisca //string $CurStr = "234.32,332.043"; string $DestUVs[]; $numTokens = `tokenize $CurStr "," $DestUVs`; vector $TempVec = <<float($DestUVs[0]),float($DestUVs[1]),0.0>>; return $TempVec; }
More information on vectors and arrays, read pages 12-16 in YSYT.