Basic 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'.

Signature

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

B00
B11
B22

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


Input StretchNode =

Project
Value
A1.5
B2

Input StartNode =

Project
Value
B2

The project A will default to 0.

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

Project
Sequence
Value
A00
A10.67
A21
A31
A41.67
A52
B00
B11
B21.33
B31.67
B42