Copy link to clipboard
Copied
I'm trying to alter the "Copy Auto Reframe Track To Transform" to copy the Transform Effect position to the Motion position.
But I can't figure out why "is almost equal" keeps returning false even when the values are identical.
Could anyone give me a hand?
Sample console info:
execute script
prop vals: [[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5],[0.64375001192093,0.5]]
compare [0.64375001192093,0.5] <-> [0.64375001192093,0.5] skip frame 1
Copy link to clipboard
Copied
Do you get this only for your modified script or also for the original one? Can you attach your script such that we can see exactly the code producing that output?
To troubleshoot this, I would add more console output to check what exactly goes wrong. Here I added more detailed output to "is almost equal":
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more