MAXScript Extensions > MAXScript Extensions for Particle Flow > Particle Flow Classes > Data Operators > Data Sub-Operators >

# Switch : ReferenceTarget

    Switch - superclass: ReferenceTarget; super-superclass:MAXWrapper - 12:0 - classID: #(1137313550, 554188032)

| Particle Flow - Quick Navigation

Description:

NEW in 3ds Max 2014: The Switch Particle Data View sub-operator works as an animatable relay from several inputs to the output of the same type.

Constructors:

    Switch...

Properties:

    <Switch>.Type     Integer    default: 6   --  integer

Get/set the selection of the "Type" drop-down list.

Possible values are:

0 - Boolean

1 - Complex

2 - Integer

3 - Matrix

4 - Pair

5 - Quaternion

6 - Real (default)

7 - Time

8 - Vector

9 - Object

    <Switch>.Active_Input     Integer    default: 0   --  animatable; integer

Get/set the index of the active input (if existing).

Currently there is no method to create Inputs using MAXScript.

    <Switch>.Render_Viewport_Switch     BooleanClass    default: false   --  boolean

Get/set the state of the "Render / VIewport Switch" checkbox.

## Inpit and Filter Sockets

    <Switch>.Input_1     UndefinedClass    default: undefined   --  maxObject

    <Switch>.Input_2     UndefinedClass    default: undefined   --  maxObject

    <Switch>.Input_3     UndefinedClass    default: undefined   --  maxObject

    <Switch>.Input_4     UndefinedClass    default: undefined   --  maxObject

    <Switch>.Input_5     UndefinedClass    default: undefined   --  maxObject

    <Switch>.Input_6     UndefinedClass    default: undefined   --  maxObject

    <Switch>.Input_7     UndefinedClass    default: undefined   --  maxObject

    <Switch>.Input_8     UndefinedClass    default: undefined   --  maxObject

Get/set the sub-operators connected to the corresponding Input sockets of the Switch sub-operator.

    <Switch>.Filter     UndefinedClass    default: undefined   --  maxObject

Get/set the sub-operator connected to the Filter socket of the Switch sub-operator.

## Switch interfaces:

The following common interface is exposed by the Switch Particle Data View sub-operator:

Interface: DataViewItem