Utilities
MN_utils_curve_resample
Inputs
Name | Type | Description | Default |
---|---|---|---|
Geometry | Geometry |
None | |
Offset | Float |
2.3 |
|
Length | Float |
0.36 |
|
Field Float | Float |
0.0 |
|
Field Int | Int |
None | |
Field Vec | Vector |
[0.0, 0.0, 0.0] |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Geometry | Geometry |
None | |
Position | Vector |
[0.0, 0.0, 0.0] |
|
Tangent | Vector |
[0.0, 0.0, 0.0] |
|
Normal | Vector |
[0.0, 0.0, 0.0] |
|
Field Float | Float |
0.0 |
|
Field Int | Int |
None | |
Field Vec | Vector |
[0.0, 0.0, 0.0] |
Attribute Remap
Sample an attribute from the mesh and remap from the minimum to the maximum to the specified values
Maps the range of values of the attribute on from the target atoms, to the range from min to max
Inputs
Name | Type | Description | Default |
---|---|---|---|
Sample Atoms | Geometry |
None | |
Attribute | String |
b_factor |
|
Value Min | Float |
0.2 |
|
Value Max | Float |
3.0 |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Value | Float |
0.0 |
Field Remap
Sample a field from the mesh and remap from the minimum to the maximum to the specified values
Maps the range of values of the attribute on from the target atoms, to the range from min to max
Inputs
Name | Type | Description | Default |
---|---|---|---|
Sample Atoms | Geometry |
None | |
Field | Float |
0.0 |
|
Value Min | Float |
0.2 |
|
Value Max | Float |
3.0 |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Value | Float |
0.0 |
Between Integer
Test if an integer is between (and including) the upper and lower bounds
Inputs
Name | Type | Description | Default |
---|---|---|---|
Value | Int |
None | |
Lower | Int |
None | |
Upper | Int |
None |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Boolean | Bool |
False |
Between Float
Test if a float is between the upper and lower bounds
Inputs
Name | Type | Description | Default |
---|---|---|---|
Value | Float |
0.0 |
|
Lower | Float |
0.0 |
|
Upper | Float |
0.0 |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Boolean | Bool |
False |
Between Vector
Test if a vector is element-wise between the upper and lower bounds.
Inputs
Name | Type | Description | Default |
---|---|---|---|
Value | Vector |
[0.0, 0.0, 0.0] |
|
Lower | Vector |
[0.0, 0.0, 0.0] |
|
Upper | Vector |
[0.0, 0.0, 0.0] |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Boolean | Bool |
False |
Vector from Point
Calculate the vector from the current point’s position to the input vector
Inputs
Name | Type | Description | Default |
---|---|---|---|
Position | Vector |
Position of the current point | Position |
Vector | Vector |
Vector that is the target | [0.0, 0.0, 0.0] |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Vector | Vector |
Vector from the current point’s position to the given vector | [0.0, 0.0, 0.0] |
Normalized | Vector |
Normalized output vector | [0.0, 0.0, 0.0] |
Length | Float |
Length of the output vector | 0.0 |
Mix Position
Mix the current point’s Position with the input vector
Inputs
Name | Type | Description | Default |
---|---|---|---|
Position | Vector |
The position vector to mix from | Position |
Factor | Float |
The amount to mix between the Position (0) and the input vector B (1) | 0.5 |
B | Vector |
The vector to mix to | [0.0, 0.0, 0.0] |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Result | Vector |
The resulting mixed vector, based on the factor | [0.0, 0.0, 0.0] |
Fractionate Float
Test if a vector is element-wise between the upper and lower bounds.
Inputs
Name | Type | Description | Default |
---|---|---|---|
Value | Float |
0.0 |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Fraction | Float |
Fractional component of the value, between 0 and 1 | 0.0 |
Floor | Int |
The integer rounded down of the input value | None |
Ceiling | Int |
The integer rounded up of the input value | None |
Centroid
Calculate the centroid point for the selection for each group in the Group ID
Inputs
Name | Type | Description | Default |
---|---|---|---|
Position | Vector |
Position |
|
Selection | Bool |
Selection to use for calculating centroid value | True |
Group ID | Int |
ID to calculate on a per-group basis | None |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Centroid | Vector |
Centroid point for the the points in the selectoin | [0.0, 0.0, 0.0] |
Vector Angle
Compute the angle in radians between two vectors.
Inputs
Name | Type | Description | Default |
---|---|---|---|
A | Vector |
[0.0, 0.0, 0.0] |
|
B | Vector |
[0.0, 0.0, 0.0] |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Angle | Float |
Angle between the two given vectors in radians | 0.0 |
Dihedral Angle
Computes the angle between two vectors, AB & CD around around the axis of BC. The first vector AB is treated as the “12 O’clock” up position, looking down the axis towards C, with angles being return in the range of (-Pi, Pi). Clockwise angles are positive and anti-clockwise angles are negative.
Inputs
Name | Type | Description | Default |
---|---|---|---|
A | Vector |
First vector for the calculation, which draws a line to B | [0.0, 0.0, 0.0] |
B | Vector |
Second vector for the calculation, which receives a line from A and draws a line to C | [0.0, 0.0, 0.0] |
C | Vector |
Third vector for the calculation, which receives a line from B and draws a line to D | [0.0, 0.0, 0.0] |
D | Vector |
Last vector for the calculation, which is the end point of the line from D | [0.0, 0.0, 0.0] |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Angle | Float |
The angle between the vectors AB and CD, when made perpendicular to BC. | 0.0 |
BA⟂(BC) | Vector |
The vector BA when made perpendicular to the axis BC | [0.0, 0.0, 0.0] |
CD⟂(BC) | Vector |
The Vector CD when makde perpendicular to the axis BC | [0.0, 0.0, 0.0] |
BC | Vector |
The axis vector BC | [0.0, 0.0, 0.0] |
3 Point Angle
Calculate the angle between 3 different points. These points are selected based on their index in the point domain, with Index B being the centre of the calculation.
In the video example, the same calculation that is occurring internally inside of the MN_topo_edge_angle
node, is being handled explicity by this node. If the Index
is being used as Index B
then the current point that is being evaluated is the centre of the angle calculation. If this value is changed, then the point at the corresponding index is used, which results in a smaller angle in the example video.
Inputs
Name | Type | Description | Default |
---|---|---|---|
Index A | Int |
First of the points for the angle calculation | None |
Index B | Int |
The middle point for the angle calculation | None |
Index C | Int |
Last of the points for the angle calculation | None |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Angle | Float |
Angle between the points around Index B in radians | 0.0 |
2 Point Angle
Calculate the angle that two points make, relative to the current point being evaluated. Points are selected based on their index, with the centre of the angle calculation being the current point’s position. Equivalent to using 3-Point angle and using Index
as the Index B
.
In the example video, the angle calculation is similar to that of the 3-Point Angle node, but the middle point is always the current point.
Inputs
Name | Type | Description | Default |
---|---|---|---|
Index A | Int |
First end point for the angle calculation around the current point | None |
Index C | Int |
Last end point for the angle calculation around the current point | None |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Angle | Float |
Angle of the line A -> Self -> C in radians | 0.0 |
Point Distance
Calculate the distance and the vector between the evaluating point and the point selected via the Index.
In the example video, each point is calculating a vector and a distance between itself and the indexed point. When the Point Mask node is used, this index is then on a per-group basis, so each point in the group points to just the group’s corresponding point.
Inputs
Name | Type | Description | Default |
---|---|---|---|
Index | Int |
Index for the selected point to measure to | None |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Vector | Vector |
Vector from the current point to the indexed point | [0.0, 0.0, 0.0] |
Distance | Float |
Distance from the current point to the indexed point | 0.0 |
.MN_utils_style_cartoon
The underlying node group which powers the cartoon style
Inputs
Name | Type | Description | Default |
---|---|---|---|
Atoms | Geometry |
Atomic geometry that contains vertices and edges | None |
Selection | Bool |
Selection of atoms to apply this node to | True |
Shade Smooth | Bool |
Apply smooth shading to the created geometry | True |
Interpolate Color | Bool |
Interpolate between distinct color selections | True |
Material | Material |
Material to apply to the resulting geometry | None |
Profile Curve | Geometry |
A custom curve-cirlce making SS ribbons. | None |
Profile Resolution | Int |
None | |
As Cylinders | Bool |
False |
|
Cylinder Curved | Bool |
True |
|
Cylinder Radius | Float |
2.0 |
|
Cylinder Resolution | Int |
None | |
Cylinder Subdivisions | Int |
None | |
Helix Thickness | Float |
0.5 |
|
Helix Width | Float |
2.0 |
|
Helix Subdivisions | Int |
None | |
Helix smoothing | Bool |
Smoothen out AH to be more cylindrical. | True |
As Arrows | Bool |
Render beta-strands with directional arrows. | False |
Arrows Sharp | Bool |
False |
|
Arrows Point | Bool |
False |
|
Arrow Thickness Scale | Float |
1.0 |
|
Arrow Width Scale | Float |
1.0 |
|
Sheet Rotate | Float |
0.0 |
|
Sheet Thickness | Float |
0.5 |
|
Sheet Width | Float |
2.0 |
|
Sheet Smoothing | Float |
1.0 |
|
Sheet Subdivision | Int |
None | |
Loop Radius | Float |
0.3 |
|
Loop Subdivisions | Int |
None | |
Loop Resolution | Int |
None |
Outputs
Name | Type | Description | Default |
---|---|---|---|
Cartoon Mesh | Geometry |
None | |
CA Splines | Geometry |
None |