←ALL OPERATORS
> tools

Apply Attributes

tools/apply-attributes·v1.5.1
IN:2  OUT:1

Apply Attributes drives each packed point of the first input from the template point with the same index on the second input. Translate, rotate, scale and pivot are enabled separately: rotation comes from the template's Orient, Euler angles or packed transform, and scale from Scale times PointScale. POPX Geometry also works as a template, and plain POPs are moved the same way.

A falloff attribute weights every channel per point, so a falloff can fade the template in over the geometry. Rotate Mode sets or adds the rotation, Scale Mode replaces or multiplies the scale, and Local Space applies both in each point's own frame. Copy Attributes carries other template attributes onto the output; Extract Attributes performs the reverse conversion.

PAGETransformation
GroupGroupIf there are input groups, specifying a group name in this field will cause this POP to act only upon the group specified.
Do FalloffDofalloffWeight the effect on each point by the Falloff Attribute.
Falloff AttributeFalloffattrThe point attribute, 0 to 1, that weights the effect.
Do TranslateDotranslateEnable applying the template translation.
Do RotateDorotateEnable applying the template rotation, blended with a slerp.
Do ScaleDoscaleEnable applying the template scale.
Do PivotDopivotEnable applying the template pivot.
Local SpaceLocalspaceWhen on, the effect is applied in local space. When off, world space is used.
PAGEAttributes
Copy AttributesCopyattrsCopy the attributes listed in Attributes To Copy onto the packed points.
Attributes To CopyAttrstocopySets the template attributes copied to the points by index. Transform attributes are applied instead of copied.
PAGECommon
BypassBypassPass through the first input to the output unchanged.
Free Extra GPU MemoryFreeextragpumemFree memory that has accumulated when output memory has grown and shrunk.
Render PrimitivesRenderprimitivesWhether to render the full POPX geometry. When off, only point instances are drawn.
Convert to Point PrimitivesConverttoptprimEnable converting points to point primitives when Render Primitives is off.
SRT / RSTSrtrstSets the transform order, SRT or RST, used when the points are rendered as TouchDesigner instances.
Input 0 POP - POPX/POP Geometry
Input 1 POP - Template Points
Output 0 POP - POPX/POP Geometry