public AMGroup duplicate() { AMGroup ngrp = new AMGroup(); ngrp.group_name = group_name; ngrp.group_id = group_id; ngrp.elements = new List<int>(elements); return ngrp; }
public void addGroup(AMTakeData take) { take.initGroups(); AMGroup g = new AMGroup(); g.init(take.getUniqueGroupID()); take.groupValues.Add(g); take.rootGroup.elements.Add(g.group_id); // select new group when it has been created selectedGroup = g.group_id; }
//Only used by editor public void RevertToDefault() { trackValues.Clear(); groupValues.Clear(); rootGroup = null; initGroups(); name = "Take 1"; frameRate = 24; numFrames = 1440; startFrame = 1f; endFrame = 100f; numLoop = 1; loopMode = LoopType.Restart; loopBackToFrame = -1; track_count = 1; group_count = 0; }
public void initGroups() { if(rootGroup == null) { AMGroup g = new AMGroup(); g.init(0); rootGroup = g; } }