AbstractFlameReader.readMotionCurveAttributes(pAtts, script.getAmplitudeCurve(), pAttrScript + Tools.CURVE_POSTFIX + "_");
return script;
}
private XFormScript readXFormScript(String pAttrScript, String pAttrScriptAmplitude, String pAttrScriptAmplitudeCurve, XMLAttributes pAtts) {
XFormScript script = new XFormScript();
String hs;
if ((hs = pAtts.get(pAttrScript)) != null) {
try {
script.setScriptType(XFormScriptType.valueOf(hs));
}
catch (Exception ex) {
ex.printStackTrace();
}
}
if ((hs = pAtts.get(pAttrScriptAmplitude)) != null) {
script.setAmplitude(Double.parseDouble(hs));
}
AbstractFlameReader.readMotionCurveAttributes(pAtts, script.getAmplitudeCurve(), pAttrScript + Tools.CURVE_POSTFIX + "_");
return script;
}