I know this works but I think it's also prone to errors. You give this variable a different meaning, other than the one returned to AE. In order to avoid confusion this should be something like frameSizePerPlane. Either a local member here or adapt entire AE to this.