Polygonjs 2.0.63
For-each loops, SDF glass, one attrib()
·built with Jai 0.2.029
-
Breaking
The expressions
ptnum(),primnum()andobjnum()are replaced byentityIndex(). WriteentityIndex(.POINT),entityIndex(.PRIMITIVE)orentityIndex(.OBJECT)instead. -
Breaking
The expressions
objectAttrib()andstage()are merged intoattrib(). Writeattrib(.NAME, entityType=.OBJECT)orattrib(.NAME, entityType=.STAGE)instead. -
Breaking
geo/Curve,geo/M2DExtrude,geo/M2DRevolveandgeo/SDFCreatenow keep the transform of their input object. A scene that moved the result back into place by hand can drop that step. -
New
geo/ForEachBeginandgeo/ForEachEndrepeat a group of nodes once per point, primitive or object, and merge what each pass produced. Creating either node from the tab menu creates the pair. -
New
geo/CopyToQuadsbends a copy of a template onto every quad, following each quad’s shape however it is twisted. -
New
mat/MeshSDFcan render SDF objects as glass, with refraction, absorption and dispersion. An opaque part inside a clear one shows through it. -
New
geo/SDFArc2Dandcode/SDFArc2Dcreate a circular arc as a 2D SDF. - New The help panel has a node browser and a reference for every expression.
-
New
Expressions accept named arguments, such as
bbox(location=1)which returns the bounding box of a node’s input 1. -
New
attrib()can read an object’s position, rotation and scale. For instance, useattrib(0, .P, entityType=.OBJECT)to read an input object’s position. - Improved Spare param hints are shown under the param instead of in a tooltip, and a page can hide or disable spare params from JavaScript.
-
Improved
geo/LineExpandkeeps 2D input in 2D, and works in the object’s local space. -
Improved
geo/CurvePropertiescan compute the tangent. - Fixed A connection to the second input of a geo node is saved correctly.