if (!effectValues.isEmpty()) {
for (EffectValueType effectValueType : effectValues) {
effectProperties.addEffectValue(effectValueType.getAttributes());
}
if (effectProperties.isTimeInterpolator()) {
LinearInterpolator interpolator = effectProperties.getInterpolator();
effectProperties.setProperty("length", String.valueOf((long)interpolator.getMaxX()));
}
}
}