For changing the After Effect expression engine, follow the below steps:
1- Press the "Project Setting" icon from the project panel.
2- Open "Expression" tab from the "Project Setting" panel.
3- Choose "Legacy ExtendScript" from "Expression Engin" dropdown.
4- Save it
5- After completing the changes which you want, restore the expression engine back to its default value.
Hope this article helped you, for more information visit Pixflow help center