scale_points
Multiplies the current point_scale values of a point-based geometry by the specified scaling factor. This affects the size of instances, as well as point shapes. However, it does not affect the size of the geometric object as a whole.
Inputs
points
The geometry with points to be scaled.
weights
The proportion of the scale factor to apply.
- A weight of 0 leaves the current scale as is.
- A weight in the range 0—1 scales by a proportion of the given
scalefactor. - A weight of 1 scales by the exact
scalefactor. - A weight above 1 scales by more than the given
scalefactor. - A weight below 0 scales negatively. This inverts any instanced shapes.
If nothing is connected, the default weight is 1 for all points. This is an interpreted auto port that accepts the following types:
- A single
floatis interpreted as a constant value for all points. - An
array<float>is interpreted as values per point. The array gets resized to match the number of points, if necessary. - An
array<bool>is interpreted as values of 0 (false) or 1 (true) per point. - A
stringis interpreted as the name of an existing geo property, and its values are used. - A
ScalarFieldis sampled at each position of the geometry's components. - An
array<long>specifies the indices to be assigned a value of 1. Other indices are assigned 0.
scale
The factor to scale by. For example, 0.25 means four times smaller, and 4 means four times bigger.
This is an interpreted auto port that accepts the following types:
- Connect a single
floatto scale all points uniformly by the same factor. - Connect an
array<float>to scale each point uniformly by a different amount. - Connect a single
float3to scale all points by the same XYZ factor. - Connect an
array<float3>to scale each point by a different XYZ factor. - Connect a
stringto scale by the values of the property of that name (floatorfloat3per point). - Connect a
ScalarFieldorVectorFieldto scale by the value of the field at each point's position.
Outputs
out_points
The geometry with scaled points.
point_scale
The point_scale values that were set on the geometry.
