LettError/MutatorMath

bender axis dict needs to be an axis list

Closed this issue · 4 comments

We need to keep track of the order of the axes (future apps). So it needs to be a list of dicts, not a dict of dicts.

https://github.com/LettError/MutatorMath/blob/master/Lib/mutatorMath/objects/bender.py#L43

Shouldn't order be kept somewhere else? What did you have in mind?

I want https://github.com/LettError/ufoProcessor to be able to switch between varlib and mutator models. I have a wrapper for varlib that makes it a drop in replacement for mutator. Varlib needs the axes in order, but mutator gets a dict. Maybe it can be done without touching mutator.

Ok, I can leave mutator alone, but then I need to make a varlib equivalent for Bender. I guess it does not exist because the axis map data is just compiled into the font, it does not need to be executed.

Yes, sorted, never mind :)