Example #1
0
        public void UpdateAnimationStyles()
        {
            foreach (Component component in (Window.ActiveWindow.Scene as Part).Components)
            {
                Part template = component.Template;
                if (template == template.Document.MainPart)
                {
                    AnimateStyle        animateStyle  = null;
                    List <AnimateStyle> animateStyles = new List <AnimateStyle>();
                    foreach (string name in template.Document.CustomProperties.Keys)
                    {
                        if (animatePropertyNames.Contains(name))
                        {
                            animateStyle = ParseAnimateProperty(name, template.Document.CustomProperties[name].Value as string, component);
                            if (animateStyle != null)
                            {
                                animateStyles.Add(animateStyle);
                            }
                        }
                    }

                    if (animateStyles.Count > 0)
                    {
                        componentAnimations[component] = new ComponentAnimation(component, animateStyles, component.Placement);
                    }
                }
            }
        }
        public void UpdateAnimationStyles()
        {
            foreach (Component component in (Window.ActiveWindow.Scene as Part).Components) {
                Part template = component.Template;
                if (template == template.Document.MainPart) {

                    AnimateStyle animateStyle = null;
                    List<AnimateStyle> animateStyles = new List<AnimateStyle>();
                    foreach (string name in template.Document.CustomProperties.Keys) {
                        if (animatePropertyNames.Contains(name)) {
                            animateStyle = ParseAnimateProperty(name, template.Document.CustomProperties[name].Value as string, component);
                            if (animateStyle != null)
                                animateStyles.Add(animateStyle);
                        }
                    }

                    if (animateStyles.Count > 0)
                        componentAnimations[component] = new ComponentAnimation(component, animateStyles, component.Placement);
                }
            }
        }