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

# randomReferenceTarget : ReferenceTarget

    randomReferenceTarget - superclass: ReferenceTarget; super-superclass:MAXWrapper - 29:0 - classID: #(1137313547, 554188032)

| Particle Flow - Quick Navigation

Description:

NEW in 3ds Max 2014: The randomReferenceTarget Particle Data View sub-operator generates scalar and vector random values.

Constructor:

    randomReferenceTarget...

Properties:

    <randomReferenceTarget>.Output_Type Integer default: 1 -- integer

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

Posssible values are:

0 - Integer

1 - Real (default)

2 - Vector

## Distribution group of controls

    <randomReferenceTarget>.Integer_Distribution_Type Integer default: 0 -- integer

Get/set the selection of the "Distribution" drop-down list used when .Output_Type is set to 0 - Integer.

The only possible value is:

0 - Uniform Discrete (default)

    <randomReferenceTarget>.Real_Distribution_Type Integer default: 4 -- integer

Get/set the selection of the "Distribution" drop-down list used when .Output_Type is set to 1 - Real.

Possible values are:

0 - Exponential

1 - Noise R

2 - Noise V

3 - Noise V+T

4 - Normal (Gaussian) (default)

5 - Triangular

6 - Turbulence V

7 - Uniform

8 - Weibull

9 - Turbulence V+T

    <randomReferenceTarget>.Vector_Distribution_Type Integer default: 3 -- integer

Get/set the selection of the "Distribution" drop-down list used when .Output_Type is set to 2- Vector.

0 - Normal (Gaussian)

1 - Sphere Surface

2 - Sphere Volume

3 - Uniform (default)

4 - Noise

5 - Noise V+T

6 - Turbulence V

7 - Turbulence V+T

## Parameter 1

    <randomReferenceTarget>.Integer_Parameter_1 Integer default: 1 -- animatable; integer; Integer_Parameter1

Get/set the value of the first spinner used as "Minimum" value of the Uniform Discrete Distribution when .Output_Type is set to 0 - Integer.

    <randomReferenceTarget>.Parameter_1 Float default: 0.0 -- animatable; float; Parameter1

Get/set the value of the first spinner used for general (negative or positive values) parameters as follows:

Output Type: | Distribution: | Parameter 1:
--- | --- | ---
Real | Normal (Gaussian) | Mean
Real | Triangular | Minimum
Real | Uniform | Minimum

    <randomReferenceTarget>.Positive_Parameter_1 Float default: 1.0 -- animatable; float; Positive_Parameter1

Get/set the value of the first spinner used for positive parameters as follows:

Output Type: | Distribution: | Positive Parameter 1
--- | --- | ---
Real | Exponential | Mean
Real | Noise R | Scale
Real | Noise V | Scale
Real | Noise V+T | Scale
Real | Turbulence V | Scale
Real | Turbulence V+T | Scale
Real | Weibull | Scale
Vector | Noise V | Scale
Vector | Noise V+T | Scale
Vector | Turbulence V | Scale
Vector | Turbulence V+T | Scale
Vector | Uniform | Max X

    <randomReferenceTarget>.Use_E3 BooleanClass default: false -- boolean

Get/set the state of the "E3" checkbutton.

## Parameter 2

    <randomReferenceTarget>.Integer_Parameter_2 Integer default: 1 -- animatable; integer; Integer_Parameter2

Get/set the value of the parameter which could be used when the .Output_Type property is set to 0 - Integer.

Currently, the only Integer mode does NOT use this parameter, so it is exposed for future compatibility.

    <randomReferenceTarget>.Parameter_2 Float default: 1.0 -- animatable; float; Parameter2

Get/set the value of the second spinner used for general (negative or positive values) parameters as follows:

Output Type: | Distribution: | Parameter 2:
--- | --- | ---
Real | Triangular | Peak

    <randomReferenceTarget>.Positive_Parameter_2 Float default: 1.0 -- animatable; float; Positive_Parameter2

Get/set the value of the second spinner used for positive parameters as follows:

Output Type: | Distribution: | Positive Parameter 2
--- | --- | ---
Real | Noise R | Strength
Real | Noise V | Strength
Real | Noise V+T | Strength
Real | Normal (Gaussian) | Sigma
Real | Turbulence V | Strength
Real | Turbulence V+T | Strength
Real | Weibull | Rate
Vector | Noise V | Strength
Vector | Noise V+T | Strength
Vector | Normal (Gaussian) | Sigma
Vector | Sphere Surface | Radius
Vector | Sphere Volume | Radius
Vector | Turbulence V | Strength
Vector | Turbulence V | Strength
Vector | Uniform | Max Y

    <randomReferenceTarget>.Use_E4 BooleanClass default: false -- boolean

Get/set the state of the "E4" checkbutton.

## Parameter 3

    <randomReferenceTarget>.Integer_Parameter_3 Integer default: 10 -- animatable; integer; Integer_Parameter3

Get/set the value of the first spinner used as "Maximum" value of the Uniform Discrete Distribution when .Output_Type is set to 0 - Integer.

    <randomReferenceTarget>.Parameter_3 Float default: 1.0 -- animatable; float; Parameter3

Get/set the value of the third spinner used for general (negative or positive values) parameters as follows:

Output Type: | Distribution: | Parameter 3:
--- | --- | ---
Real | Triangular | Maximum
Real | Uniform | Maximum

    <randomReferenceTarget>.Positive_Parameter_3 Float default: 1.0 -- animatable; float; Positive_Parameter3

Get/set the value of the third spinner used for positive parameters as follows:

Output Type: | Distribution: | Positive Parameter 3:
--- | --- | ---
Real | Turbulence V | Iterations (>1.0)
Real | Turbulence V+T | Iterations (>1.0)
Vector | Turbulence V | Iterations (>1.0)
Vector | Turbulence V+T | Iterations (>1.0)
Vector | Uniform | Max Z

    <randomReferenceTarget>.Use_E5 BooleanClass default: false -- boolean

Get/set the state of the "E5" checkbutton.

## Parameters Animation Sync

    <randomReferenceTarget>.Sync_Type Integer default: 0 -- animatable; integer

Get/set the selection of the "Parameters Animation Sync" drop-down list.

Possible values are:

0 - Absolute Time (default)

1 - Particle Age

2 - Particle Lifespan

3 - Event Duration

4 - Time Data Input

    <randomReferenceTarget>.Use_E6 BooleanClass default: false -- boolean

Get/set the state of the "E6" checkbutton.

## Uniqueness group of controls

    <randomReferenceTarget>.Random_Seed Integer default: 23248 -- animatable; integer

Get/set the value of the "Seed" spinner.

    <randomReferenceTarget>.Use_E7 BooleanClass default: false -- boolean

Get/set the state of the "E7" checkbutton.

## Input and Filter Sockets

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

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

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

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

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

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

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

Get/set the sub-operator connected to the corresponding Input socket of the randomReferenceTarget sub-operator.

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

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

    <randomReferenceTarget>.iterations Float default: 2.0 -- animatable; float

Not exposed in the User Interface.

## randomReferenceTarget interfaces:

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

Interface: DataViewItem