Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Return value

string array

Examples

Code Block
languagetext
string $mds[] = `getModules -type BoneNode`;

...


int $i;

...


for( $i = 0; 

...


     $i < $mds.getCount(); 

...


     $i += 1 )

...


   { 

...

     print( $mds[$i] );

...


   }

...


   print ($mds.getCount());

...


 

...

// In this small procedure, a module array called "$mds" is declared

...


// and all scene modules of the type BoneNode are assigned to it.

...


// The for loop iterates through the elements of the array and

...


// prints each one to the interface. The last line prints the value

...


// of $mds.getCount, an integer describing the number of modules 

...

// that were found in this instance.

Additional information

Related commands

...