Skip to main content
Participant
August 17, 2026

Reading a layer's Position (or Scale, or Anchor Point) via ExtendScript throws "invalid numeric result (divide by zero?)" when the returned array is used in string concatenation, even on a brand-new composition and layer.

  • August 17, 2026
  • 0 replies
  • 13 views

Steps to reproduce:

  1. Create a new composition (any size/settings)
    2. Add a solid layer
    3. Run this via a script panel or File > Scripts > Run Script File:

    var v = app.project.activeItem.layer(1).property("Transform").property("Position").value;
    alert("pos=" + v);

    Expected result:
    Alert shows the Position value, e.g. "pos=320,180,0"

Actual result:
Script fails with: Error: invalid numeric result (divide by zero?)

Additional notes: String(v), v.join(","), and v.toString() all work fine on the exact same array — only implicit + string concatenation triggers it. Scalar properties (Opacity, Rotation) are unaffected. Reproduces on a completely fresh project/comp/layer, and persists across a full quit and relaunch of After Effects.

After Effects version: 26.3.0 (Build 87)
Operating system: macOS 15.7.9