public static ChannelMenuLevel MakeRootLevelForFigure(ActorModel model) { var rootLevel = new ChannelMenuLevel(model); foreach (Channel channel in model.MainDefinition.ChannelSystem.Channels) { if (!channel.Visible) { continue; } if (channel.Path.StartsWith("/Joints/")) { continue; } var pathArray = channel.Path.Split('/'); rootLevel.Add(channel, pathArray, 0); } rootLevel.Extract(new string[] { "Shapes", "People" }); rootLevel.Extract(new string[] { "Shapes", "Full Body", "People" }); rootLevel.Extract(new string[] { "Shapes", "Head", "People" }); rootLevel.Extract(new string[] { "Shapes", "Shape" }); return(rootLevel); }
public static ChannelMenuLevel MakeRootLevelForFigure(ActorModel model) { var rootLevel = new ChannelMenuLevel(model); foreach (Channel channel in model.MainDefinition.ChannelSystem.Channels) { if (!channel.Visible) { continue; } if (channel.Path.StartsWith("/Joints/")) { continue; } var pathArray = channel.Path.Split('/'); rootLevel.Add(channel, pathArray, 0); } return(rootLevel); }