<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Passing array through type throws error while parsing arguments in Maya LT Forum</title>
    <link>https://forums.autodesk.com/t5/maya-lt-forum/passing-array-through-type-throws-error-while-parsing-arguments/m-p/8059257#M1098</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/956557"&gt;@tony.su&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Yes,&amp;nbsp;&lt;SPAN&gt;xform -s&amp;nbsp;don't support string in Maya or Maya LT. I'll report it to our developer team.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It don't work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks Tony, don't forget to report double3 too, i dont know about any other types&amp;nbsp;if i come across ill post here.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Mon, 11 Jun 2018 07:03:02 GMT</pubDate>
    <dc:creator>YetiTech</dc:creator>
    <dc:date>2018-06-11T07:03:02Z</dc:date>
    <item>
      <title>Passing array through type throws error while parsing arguments</title>
      <link>https://forums.autodesk.com/t5/maya-lt-forum/passing-array-through-type-throws-error-while-parsing-arguments/m-p/8058782#M1096</link>
      <description>&lt;P&gt;Passing an array through type scale value throws an error while parsing arguments. [Maya 2018LT SP3-MEL]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;polySphere -n p1;
polySphere -n p2;
string $j[]={
    "p1", 2,2,2, 2,2,2, 2,2,2,
    "p2", 2,2,2, 2,2,2, 2,2,2};
for ($i=0;$i&amp;lt;size($j);$i++){		
	if ($i%10==0){
	    select $j[$i];    
		xform -t $j[$i+1] $j[$i+2] $j[$i+3] -ro $j[$i+4] $j[$i+5] $j[$i+6] -s $j[$i+7] $j[$i+8] $j[$i+8];
$j[$i+6] -s $sx $sy $sz;
	}	
}&lt;/PRE&gt;&lt;P&gt;This is a work around by passing a variable instead of an array.&lt;/P&gt;&lt;PRE&gt;polySphere -n p1;
polySphere -n p2;
string $j[]={
    "p1", 2,2,2, 2,2,2, 2,2,2,
    "p2", 2,2,2, 2,2,2, 2,2,2};
for ($i=0;$i&amp;lt;size($j);$i++){		
	if ($i%10==0){
	    select $j[$i];
	    float $sx=$j[$i+7];float $sy=$j[$i+8];float $sz=$j[$i+9];	    
	    xform -t $j[$i+1] $j[$i+2] $j[$i+3] -ro $j[$i+4] $j[$i+5] $j[$i+6] -s $sx $sy $sz;
	}	
}&lt;/PRE&gt;&lt;P&gt;The same throws an error parsing arguments type doube3&lt;/P&gt;&lt;PRE&gt;string $a[]={
    "mat",1,1,1};
shadingNode -asShader phong -n $a[0];
sets -renderable true -noSurfaceShader true -empty -name ($a[0]+"SG");
connectAttr -f ($a[0]+".outColor") ($a[0]+"SG.surfaceShader");
setAttr ($a[0]+".color") -type double3 $a[1] $a[2] $a[3];&lt;/PRE&gt;&lt;P&gt;The same work around can be applied by passing a variable instead of an array.&lt;/P&gt;&lt;PRE&gt;string $a[]={
    "mat",1,1,1};
shadingNode -asShader phong -n $a[0];
sets -renderable true -noSurfaceShader true -empty -name ($a[0]+"SG");
connectAttr -f ($a[0]+".outColor") ($a[0]+"SG.surfaceShader");
float $r=$a[1]; float $g=$a[2]; float $b=$a[3];
setAttr ($a[0]+".color") -type double3 $r $g $b;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 21:01:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-lt-forum/passing-array-through-type-throws-error-while-parsing-arguments/m-p/8058782#M1096</guid>
      <dc:creator>YetiTech</dc:creator>
      <dc:date>2018-06-10T21:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Passing array through type throws error while parsing arguments</title>
      <link>https://forums.autodesk.com/t5/maya-lt-forum/passing-array-through-type-throws-error-while-parsing-arguments/m-p/8059061#M1097</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;SPAN&gt;xform -s&amp;nbsp;don't support string in Maya or Maya LT. I'll report it to our developer team.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It don't work&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;xform -s $j[1] $j[1] $j[1];&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It works&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;int $a = $j[1];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;xform -s $a $a $a;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt; polySphere -n p1;&lt;BR /&gt; string $j[]={"p1",2};&lt;BR /&gt; int $a = $j[1];&lt;BR /&gt; select $j[0]; &lt;BR /&gt; xform -t $j[1] $j[1] $j[1];&lt;BR /&gt; xform -ro $j[1] $j[1] $j[1];&lt;BR /&gt; //xform -s $j[1] $j[1] $j[1];&lt;BR /&gt; xform -s $a $a $a;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 04:11:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-lt-forum/passing-array-through-type-throws-error-while-parsing-arguments/m-p/8059061#M1097</guid>
      <dc:creator>tony.su</dc:creator>
      <dc:date>2018-06-11T04:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Passing array through type throws error while parsing arguments</title>
      <link>https://forums.autodesk.com/t5/maya-lt-forum/passing-array-through-type-throws-error-while-parsing-arguments/m-p/8059257#M1098</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/956557"&gt;@tony.su&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Yes,&amp;nbsp;&lt;SPAN&gt;xform -s&amp;nbsp;don't support string in Maya or Maya LT. I'll report it to our developer team.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It don't work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks Tony, don't forget to report double3 too, i dont know about any other types&amp;nbsp;if i come across ill post here.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 11 Jun 2018 07:03:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-lt-forum/passing-array-through-type-throws-error-while-parsing-arguments/m-p/8059257#M1098</guid>
      <dc:creator>YetiTech</dc:creator>
      <dc:date>2018-06-11T07:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing array through type throws error while parsing arguments</title>
      <link>https://forums.autodesk.com/t5/maya-lt-forum/passing-array-through-type-throws-error-while-parsing-arguments/m-p/8070569#M1099</link>
      <description>&lt;P&gt;Can not pass array through joint -radius but can pass variable type non array. Please tell your dev team to check all argument types passing array and fix up maya its very buggy.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 10:46:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-lt-forum/passing-array-through-type-throws-error-while-parsing-arguments/m-p/8070569#M1099</guid>
      <dc:creator>YetiTech</dc:creator>
      <dc:date>2018-06-15T10:46:30Z</dc:date>
    </item>
  </channel>
</rss>

