SIAddPointOnCurve AtEnd

Description

Adds a point at the end on the specified curve.

Scripting Syntax

    SIAddPointOnCurveAtEnd( InputObj, [X], [Y], [Z], [Local], [CurveType], [PreserveTrace] )

Parameters

Parameter | Type | Description
InputObj | String | Curve to set points on.
X | Double | X coordinate Default Value: 0
Y | Double | Y coordinate Default Value: 0
Z | Double | Z coordinate Default Value: 0
Local | Boolean | True if points are in local coordinates, False if they are in global coordinates. Default Value: False
CurveType | Integer | Type of curve Default Value: -1
PreserveTrace | Boolean | True if the current trace of the curve should remain intact with the addition of the new point. Default Value: False

Examples

VBScript Example

    'This example shows how to add points at the end of a curve.
    newscene
    'Create a curve and add points at end.
    'Adding points at end will create a curve that
    'has the same trace as adding the same points at start
    'but with start and end points reversed.
    SICreateCurve "crvlist", 3, 0
    SIAddPointOnCurveAtEnd "crvlist", -4.0, 0, 1.6, False
    SIAddPointOnCurveAtEnd "crvlist", -3.9, 0, -0.3, False
    SIAddPointOnCurveAtEnd "crvlist", -2.3, 0, 0.2, False
    SIAddPointOnCurveAtEnd "crvlist", -1.9, 0, -2.2, False
    SIAddPointOnCurveAtEnd "crvlist", -0.1, 0, -0.9, False
    SIAddPointOnCurveAtEnd "crvlist", 0.4, 0, 0.6, False
    SIAddPointOnCurveAtEnd "crvlist", 3, 0, -1.7, False
    SIAddPointOnCurveAtEnd "crvlist", 3.7, 0, -1.8, False

    'Show boundaries
    SelectObj "crvlist"
    ToggleValue "attrselboundaryflags", "*.camvis,Views.*.*.camvis"

See Also

CreateCurve | SISetCurvePoints | SICreateCurve | SIAddPointOnCurve
SIAddPointOnCurveAtStart | GetCurveLength | EvaluateCurveAt |

Autodesk Softimage v7.5