Statemachine editor framework, based off animtree