Skip to main content

vScriptValCopyToPoints

Copies a template point set onto every target point, with scale and seeded Z rotation.

IntermediateMograph / ScriptValScriptValArrayJSON
vScriptValCopyToPoints node

vScriptValCopyToPoints takes a Template array and a Points array, and outputs one copy of the template at each point. Scale, Base Rotate Z, Random Rotate Z and the random offsets change each copy.

Parameters​

ParameterTypeDefaultDescription
Template ScaleFloat1Scale of each copy, multiplied with Scale X, Y and Z. Slider 0 to 4, default 1.
Scale XFloat1Scale of the template on X, applied before the rotation. Slider 0 to 4, default 1.
Scale YFloat1Scale of the template on Y, applied before the rotation. Slider 0 to 4, default 1.
Scale ZFloat1Scale of the template on Z. Slider 0 to 4, default 1.
Base Rotate ZFloat0Rotation of each copy around Z in degrees. Slider -360 to 360, default 0.
+7 more parameters
ParameterTypeDefaultDescription
Random Rotate ZFloat0Each copy is rotated by a random angle between minus and plus this value, in degrees. Minimum 0, default 0.
SeedInteger0Integer from 0, slider to 10000, default 0. The same Seed repeats the random values.
Random Offset XFloat0Each copy is moved on X by a random value between minus and plus this value. Minimum 0, default 0.
Random Offset YFloat0Each copy is moved on Y by a random value between minus and plus this value. Minimum 0, default 0.
Random Offset ZFloat0Each copy is moved on Z by a random value between minus and plus this value. Minimum 0, default 0.
TemplateDATATYPE—Points that are copied. If empty, one point at 0, 0, 0 is used.
PointsDATATYPE—Target points that receive a copy of the template.
Read the full description

For each Points entry the template is scaled by Template Scale and Scale X, Y and Z, rotated around Z, and placed at that point. The output has one point for each pair of target point and template point. Without a Template, a single point at 0, 0, 0 is used, so the output has one point per target point.

The Z angle in degrees is Base Rotate Z plus a random value between minus and plus Random Rotate Z, chosen per target point. Random Offset X, Y and Z move each copy by a random value between minus and plus the setting. All random values come from Seed and the point index.

The scale is applied before the rotation. All template points of one copy share one angle and one offset.

Example Connections​

vScriptValPointsOnCircle.Output -> vScriptValCopyToPoints.Template
vScriptValPointsOnGrid.Output -> vScriptValCopyToPoints.Points
vScriptValCopyToPoints.Output -> vScriptValCameraProjection.ArrayA
vScriptValCameraProjection.Output -> vScriptValShapeRender.ArrayPoint
Background.Output -> vScriptValShapeRender.Input