title: Maya expression syntax error
body: <p>What is wrong with the following expressions that I am trying to set on a particular attribute in Maya. All are just different approaches.</p>
  
  <p><strong>Expression 1:</strong></p>
  
  <pre><code>directionalLightShape1.intensity = sqrt(noise(time));
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>expression -s "directionalLightShape1.intensity = sqrt(noise(time));"  -o directionalLightShape1 -ae 1 -uc all ;
  // Error: line 0: Invalid argument(s) for sqrt. // 
  // Error: line 0: An execution error occured in the expression expression1. // 
  // Result: expression1 // 
  // Error: line 0: Invalid argument(s) for sqrt. // 
  // Error: An execution error occured in the expression expression1. // 
  </code></pre>
  
  <p><strong>Expression 2:</strong></p>
  
  <pre><code>float $n = noise(time);
  directionalLightShape1.intensity = sqrt($n);
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>expression -e -s "float $n = noise(time);\ndirectionalLightShape1.intensity = sqrt($n);"  -o directionalLightShape1 -ae 1 -uc all  expression1;
  // Error: line 1: Invalid argument(s) for sqrt. // 
  // Error: line 0: An execution error occured in the expression expression1. // 
  // Result: expression1 // 
  // Error: line 1: Invalid argument(s) for sqrt. // 
  // Error: An execution error occured in the expression expression1. // 
  </code></pre>
  
  <p><strong>Expression 3:</strong></p>
  
  <pre><code>float $n = sqrt(`noise time`);
  directionalLightShape1.intensity = $n;
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>expression -e -s "float $n = sqrt(`noise time`);\ndirectionalLightShape1.intensity = $n;"  -o directionalLightShape1 -ae 1 -uc all  expression1;
  // Error: line 0: Invalid call to "noise".  Check number and types of arguments expected by the procedure. // 
  // Error: line 0: An execution error occured in the expression expression1. // 
  // Result: expression1 // 
  // Error: line 0: Invalid call to "noise".  Check number and types of arguments expected by the procedure. // 
  // Error: An execution error occured in the expression expression1. // 
  </code></pre>
  
  <p><strong>Expression 4:</strong></p>
  
  <pre><code>float $n = noise(time);
  directionalLightShape1.intensity = `sqrt $n`;
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>expression -e -s "float $n = noise(time);\ndirectionalLightShape1.intensity = `sqrt $n`;"  -o directionalLightShape1 -ae 1 -uc all  expression1;
  // Error: line 1: Invalid argument(s) for sqrt. // 
  // Error: line 0: An execution error occured in the expression expression1. // 
  // Result: expression1 // 
  // Error: line 1: Invalid argument(s) for sqrt. // 
  // Error: An execution error occured in the expression expression1. // 
  </code></pre>