allocator in the script and animation plugin