diff --git a/package.json b/package.json index 5d27047..26060de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mmkr", - "version": "1.0.0", + "version": "1.0.1", "description": "MMaker's After Effects Expression Library", "main": "dist/mmkr.jsx", "scripts": { diff --git a/src/index.ts b/src/index.ts index 8e56e5e..abc73a1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -51,9 +51,9 @@ function get_functions(time: number = thisLayer.time) } const YTPMV = { - flip: function(mult = 100, input_property = thisProperty) + flip: function(input_property = thisProperty, mult = 100) { - const n = get_key_index(input_property); + const n = get_key_index(undefined, input_property); return (n % 2 != 0 || n == 0) ? 1*mult : -mult; },