Search in sources :

Example 1 with XFormScriptType

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

the class TinaSWFAnimatorController method getXFormScriptFromUI.

private XFormScript getXFormScriptFromUI(JComboBox pCmb, JWFNumberField pField) {
    XFormScriptType scriptType = (XFormScriptType) pCmb.getSelectedItem();
    XFormScript res = new XFormScript(scriptType != null ? scriptType : XFormScriptType.NONE, pField.getDoubleValue());
    res.getAmplitudeCurve().assign(curves.get(pField.getMotionPropertyName()).getCurve());
    return res;
}
Also used : XFormScriptType(org.jwildfire.create.tina.animate.XFormScriptType) XFormScript(org.jwildfire.create.tina.animate.XFormScript)

Aggregations

XFormScript (org.jwildfire.create.tina.animate.XFormScript)1 XFormScriptType (org.jwildfire.create.tina.animate.XFormScriptType)1