Versions Compared

Key

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

...

Used to determine the number of modules that currently exist in Shogun in Shogun Post. The command, without any flags, returns a count of every module in the scene.

...

integer

Scroll pagebreak

Examples

Code Block
languagetext
$i = `getNumModules`; 

...


print $i; //Output "1243"

...


 

...

$i = `getNumModules -type Marker`; 

...


print $i; //Output "828"

...


 

...

$i = `getNumModules -type Bone`; 

...


print $i; //Output "123";

...


 

...

select RightUpLeg RKNE; 

...

$i = `getNumModules -selected`; 

...


print $i; //Output "2";

...


 

...

$i = `getNumModules -type Bone -selected`; 

...

print $i; //Output "1";