in seriously.js [2013:2059]
this.inputs = function (name) {
var result,
input,
inputs,
i,
key;
inputs = me.effect.inputs;
if (name) {
input = inputs[name];
if (!input) {
return null;
}
result = {
type: input.type,
defaultValue: input.defaultValue,
title: input.title || name
};
if (input.type === 'number') {
result.min = input.min;
result.max = input.max;
result.step = input.step;
} else if (input.type === 'enum') {
//make a copy
result.options = extend({}, input.options);
} else if (input.type === 'vector') {
result.dimensions = input.dimensions;
}
if (input.description) {
result.description = input.description;
}
return result;
}
result = {};
for (key in inputs) {
if (inputs.hasOwnProperty(key)) {
result[key] = this.inputs(key);
}
}
return result;
};