- Posts: 3
- Joined: Sat Aug 27, 2022 11:58 pm
- Real Name: Jon Lapinskas
I was able to solve this, but not using a dynamic keyframe position. I created an if statement in the pEmitter Number field that checks to see if the width of the text is greater than position of the saw (I moved the saw position using Merge2.Center.X). If yes, emit 5 particles per frame; if no then don't emit any particles. This causes the "sparks" to stop at the end of the word and it works well. Here's the statement for reference:
iif((Text1.Output[0].DataWindow[3]-Text1.Output[0].DataWindow[1])/Text1.Output[0].Width+.05 > Merge2.Center.X, 5, 0)
I'm sure there are other more elegant ways to get the same outcome, but this seemed to get the job done. Now I can reuse this effect with any size word without redoing any keyframes.