Go to: Synopsis. Return value. MEL examples.

Synopsis

int copyArray(float $vSrc[], float $vDest[], int $numberToCopy)

Copies a certain number of values from one float array to another

Return value

None

MEL examples

  float $src[] = { 1.0, 2.0 };
  float $dst[] = { 3.0, 4.0 };
  copyArray( $src, $dst, 1 );
  // Result : 1 //
  print $dst;
  // 1.0
  // 4.0
  copyArray( $src, $dst, 2 );
  // Result : 1 //
  print $dst;
  // 1.0
  // 2.0