Ming Hsu 4 AE Expressions Coins 21 COW Coins @minghsu • Joined Jan 2021 • Active a year ago Remove Connection Are you sure you want to remove from your connections? Timeline Profile Connections 1 Photos Forums Points Leader Badges Discussions Replies Favorites Discussions Replies Favorites Forum Replies Created Ming Hsu November 1, 2024 at 2:01 am in reply to: marker.numKeys works sometimes, sometimes not m = thisComp.layer(“Shape Layer 1”); txt = “”; if (m.marker.numKeys > 0){ n = m.marker.nearestKey(time).index; if (time < m.marker.key(n).time) n–; if (n > 0) txt = m.marker.key(n).comment; } txt Maybe you can try this 🙂 Ming Hsu January 6, 2023 at 2:55 am in reply to: How to use Javascript text decimal only retains the single digit? Thank u Dan. i solved it!!In the end i put this script. (“0” + Y ).slice(-1);—————————— Here’s a little game where I’m making a template. The sum of the points of the two cards exceeds 10. Only look at single digit numbers.The maximum is 9 and the minimum is 0.