This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| loopDur = key(numKeys).time - key(1).time; | |
| // only run while this layer is active | |
| if (time < inPoint) { | |
| // before layer starts → hold first keyframe | |
| key(1).value; | |
| } else if (time > outPoint) { | |
| // after layer ends → hold the final accumulated value at outPoint | |
| tEnd = outPoint - key(1).time; | |
| loopCountEnd = Math.floor(tEnd / loopDur); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // disconnectStyles.jsx | |
| // | |
| // Generated with Gemini 2.5 Pro | |
| // | |
| // DESCRIPTION: | |
| // This script finds all paragraphs in the user's selection. | |
| // For each unique paragraph style applied to those paragraphs, it creates a new, | |
| // duplicated style with a "_new" suffix. It then applies these new styles | |
| // to the corresponding paragraphs, effectively "disconnecting" them from their | |
| // original styles. |