Skip to main content
Skip table of contents

STRETCH_CURVE

Overview

Description

Stretches the curve(s) defined in the 'CurvesNode' over the X axis by a factor defined in 'StretchNode'. You can specify the X coordinate at where the stretching begins with the 'StartNode' parameter. The stretching begins at 0 by default. The X coordinates are represented by the Sequence level in 'CurvesNode'. The Y coordinates are represented by the values of 'CurvesNode'.

Syntax

STRETCH_CURVE(CurvesNode, StretchNode [, StartNode])

Parameters

  • CurvesNode: The definition of curves as a set of (X, Y) points in the coordinate system. X are values of the Sequence level in the parameter, Y values are the values of the parameter. It must contain the Sequence level.

  • StretchNode: The stretch factor. It must not contain the Sequence level and only contain levels that are present in the CurvesNode parameter. Can also be a constant.

  • StartNode: Where the stretching of the curve begins. It must not contain the Sequence level and only contain levels that are present in the CurvesNode parameter. Can also be a constant. It is an optional parameter. All the curves will start stretching 0 if omitted.

Example

Input CurvesNode =

Project

Sequence

Value

A

0

0

A

1

1

A

2

1

A

3

2

B

0

0

B

1

1

B

2

2

This input contains 2 curves. One for project A and one for project B.

Input StretchNode =

Project

Value

A

1.5

B

2

Input StartNode =

Project

Value

B

2

The project A will default to 0.

Output STRETCH_CURVE('CurvesNode', 'StretchNode', 'StartNode') =

Project

Sequence

Value

A

0

0

A

1

0.67

A

2

1

A

3

1

A

4

1.67

A

5

2

B

0

0

B

1

1

B

2

1.33

B

3

1.67

B

4

2

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.