Vicon Shogun banner

Description

Retrieves a module's type. When retrieving an array of modules from a command, the module types will need to be determined from a script.

Functional area

Data retrieval

Command syntax

Syntax

getModuleType moduleName

Arguments

NameTypeRequiredComments
moduleNamestringyesThe module to get the type for.

Flags

None

Return value

string

Examples

// Get the selected modules in the scene and print out their types.
string $modules[];
string $type;
int $i, $count;

// First get the modules
$modules = `getModules -s`;

// Iterate through and print out their types
$count = `getCount $modules`;
for( $i = 0;
$i < $count;
$i += 1 )
{
$type = `getModuleType $modules[ $i ]`;
print $type;
}

Additional information

Related commands