Common Parameters
Last updated
Last updated
The following parameters and flags are available for all //ezspline
subcommands.
<radii>
Defines the thickness (course) of the spline.
Acceptable values are: one or more comma-separated entries, where each entry is either:
A radius value (e.g., 10
, 6.9
). Radius values must be greater than 0.
A position and radius, separated by a colon, where the position is a decimal between 0 and 1 (e.g., 0:10
, 0.5:15.5
).
Whereby if specified, each position must be strictly ascending, and the first and last entries must be positions of 0
and 1
. If positions are omitted, they will be set and interpolated automatically.
For example
0.5:10
,
2
is illegal because the first entry, which is always position 0.0
, has been specified as position "0.5
"
5
,
0.6:10
,
15
,
0.4:20
,
5
is illegal because the positions are not in strictly ascending order since 0.4 came after 0.6.
-p <kbParameters>
Parameters for the flow of the spline. Determines what path the spline takes through the given node positions.
Defaults to 0:0:0
.
Provide <tension>:<bias>:<continuity>
, colon-separated in that order. The expected value range for each parameter is [-1..1]
.
-q <quality>
(v0.13.0 or newer)Determines how accurately the spline shape should be generated, trading between accuracy and runtime.
There are three modes:
FAST
(~1.5x faster than balanced)
BALANCED
EXACT
(~3x slower than balanced)
Defaults to BALANCED
(which produces an almost perfect result relatively quickly).
-q <quality>
(v0.12.0 or lower)Sets the number of samples of the shape per dimension per block. Must be greater than 0.
Defaults to 2.0
(which produces a mediocre result relatively quickly).
If you get air gaps, or a noise-y / unsmoothed appearance, set the quality to a higher value, e.g. -q 5.0
.
Higher values for the -q
parameter can significantly increase processing time. While small values (e.g., -q 2
) are relatively quick, larger values (e.g., -q 10
) may take minutes. Additionally, the benefit of increasing the -q
value diminishes beyond a certain point. We suggest using 2 while testing parameters and rendering with 4-6 for the final placement.
-r <startRoll>
or -r <startRoll>,<endRoll>
Allows to rotate the spline shape around the spline's axis, aka. rolling it. Expecting an angle given in degrees.
Defaults to 0
.
There are two ways to twist/roll your spline:
You may define a starting roll angle with -r
and a twisting angle with -t
, allowing for a constant twist per length.
Or may define a starting roll angle and an end roll angle by passing two comma-separated angles to -r
. If you do that, -t
will be ignored.
-s <stretchFactor>
Allows stretching or compressing the spline shape in the direction of the spline path.
Defaults to 1
.
-t <angle>
Defines how much to twist the shape along the spline. The input is an angle given in degrees.
Defaults to 0
. (Except for //ezsp rope
, there it's 90)
Specifics: The angle determines how much the shape is rotated throughout the length of the current diameter of the spline. Meaning, that if the diameter is 30 blocks, then after 30 blocks of path length, the shape will have rotated by the given angle.
This parameter is ignored if you pass both a starting and an end angle to -r
.
-n <normalMode>
There are three modes:
CONSISTENT
aims to appear smooth and consistent by "rolling" the spline shape in curves.
HORIZONTAL
prevents the spline shape from "rolling sideways", keeping its initial orientation.
UPRIGHT
makes the internal spline shape's y-axis with the world's y-axis.
The default is CONSISTENT
.
-e <endMode>
Set how the two ends of the spline should look like.
There are five modes:
FLAT
The spline ends abruptly at the exact endpoint of the path.
SOFT
The spline ends softly shape Cuts into the spline, tapering off the end in a softened end.
SPIKE
The spline ends with a cone that extends beyond the endpoint of the path.
ROUND
The spline ends with a dome that extends beyond the endpoint of the path.
CUBE
The spline ends in a cube shape beyond the endpoint of the path.
The default is FLAT
.
-h
Prints the in-game help page. Shortcut for //help ezspline ...
shows what each parameter does.
-q BALANCED
-q FAST
v0.13.0 introduced a significantly better and faster spline algorithm. This is only relevant for people who still use ezEdits version 0.12.0 or older. See for newer version behaviour.
-e FLAT
-e SOFT
\
-e SPIKE
\
-e ROUND
\
-e CUBE
-e FLAT
-e SOFT
-e SPIKE
-e ROUND
-e CUBE