Closed runegan closed 6 years ago
Original report by Zack Lovatt (Bitbucket: zlovatt, GitHub: zlovatt).
/** * Gets selected comps, or all comps if none is selected. * * @method * @memberof aeq * @return {aeq.arrayEx} ArrayEx of Comp objects */ function getSelectedCompsOrAll () { var comps = aeq.project.getSelectedComps(); if (comps.length == 1) comps = aeq.arrayEx(comps); if (aeq.isEmpty(comps)) return aeq.getCompositions(); return comps; }
Original comment by Zack Lovatt (Bitbucket: zlovatt, GitHub: zlovatt).
Adds aeq.project.getSelectedCompsOrAll (resolve #36)
Original report by Zack Lovatt (Bitbucket: zlovatt, GitHub: zlovatt).