/
hasParameter

hasParameter

Description

Determines if a parameter exists on a character.

Returns true if the given parameter exists on the given character and false if it does not.

Functional area

Parameters

Command syntax

Syntax

hasParameter characterName parameterName [-solving]

Arguments

NameTypeRequiredComments
characterNameStringYesDefines the name of the character to check if the parameter exists on.
parameterNameStringYesDefines the name of the parameter.

Flags

See above syntax.

Return value

boolean

Returns true if the character has the parameter and false if it doesn't.

Examples

// Check if the Character named "Bob" has a parameter named "UpperArmLength"
if(`hasParameter "Bob" "UpperArmLength"`)
  {
     print "Bob has a parameter named UpperArmLength";
  }
else
  { 
     print "Bob does not have a parameter named UpperArmLength";
  }

Additional information

Related commands

Related content


© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks