Search in sources :

Example 1 with MotionCurveAttribute

use of org.jwildfire.create.tina.animate.AnimationService.MotionCurveAttribute in project JWildfire by thargor6.

the class AbstractFlameReader method readMotionCurves.

protected void readMotionCurves(Object source, XMLAttributes atts, String pNamePrefix) {
    for (MotionCurveAttribute attribute : AnimationService.getAllMotionCurves(source)) {
        MotionCurve curve = attribute.getMotionCurve();
        String namePrefix = pNamePrefix == null ? attribute.getName() + "_" : pNamePrefix + attribute.getName() + "_";
        readMotionCurveAttributes(atts, curve, namePrefix);
    }
}
Also used : MotionCurveAttribute(org.jwildfire.create.tina.animate.AnimationService.MotionCurveAttribute) MotionCurve(org.jwildfire.create.tina.base.motion.MotionCurve)

Example 2 with MotionCurveAttribute

use of org.jwildfire.create.tina.animate.AnimationService.MotionCurveAttribute in project JWildfire by thargor6.

the class AbstractFlameWriter method writeMotionCurves.

protected void writeMotionCurves(Object source, SimpleXMLBuilder xb, List<SimpleXMLBuilder.Attribute<?>> attrList, String pNamePrefix, List<String> pNameBlackList) throws Exception {
    for (MotionCurveAttribute attribute : AnimationService.getAllMotionCurves(source)) {
        MotionCurve curve = attribute.getMotionCurve();
        String name = pNamePrefix == null ? attribute.getName() : pNamePrefix + attribute.getName();
        if (!pNameBlackList.contains(name)) {
            writeMotionCurve(xb, attrList, name, curve);
        }
    }
}
Also used : MotionCurveAttribute(org.jwildfire.create.tina.animate.AnimationService.MotionCurveAttribute) MotionCurve(org.jwildfire.create.tina.base.motion.MotionCurve)

Aggregations

MotionCurveAttribute (org.jwildfire.create.tina.animate.AnimationService.MotionCurveAttribute)2 MotionCurve (org.jwildfire.create.tina.base.motion.MotionCurve)2