## SelectChain

### Introduced

v4.0

### Description

Branch-Select the root of the chain that owns the currently selected bone/effector objects.
This is the same as calling SelectObj , "CHAIN".

### Scripting Syntax

    SelectChain( [CheckObjectSelectability] );

### Parameters

Parameter | Type | Description
--- | --- | ---
CheckObjectSelectability | Boolean | Specifies whether to select chain objects that marked as unselectable. Default Value: False
Possible Values: | Description:
False | Select chain objects even if they are marked as unselectable.
True | Do not select chain objects if they are marked as unselectable.

### Examples

#### VBScript Example

    'The following example uses SelectChain to branch-select the root of the chain that owns the currently selected bone.
    NewScene
    Create2DSkeleton -4.24271844660194, -1.68031960708853, 0, -2.14563106796117, 2.67102827716385, 0, 0, 0, 0, 4
    AppendBone "eff", -0.825242718446603, -1.97170451005186, 0
    AppendBone "eff", 1.81553398058252, 2.74873091795407, 0
    AppendBone "eff", 3.3495145631068, -1.79687356827387, 0
    SelectObj "bone1", , True
    SelectChain
    logMessage "The whole chain (ie: root) should now be selected in branch"