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);
}
}
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);
}
}
}
Aggregations