Search in sources :

Example 1 with GlobalScriptType

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

the class TinaSWFAnimatorController method getGlobalScriptFromUI.

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

Aggregations

GlobalScript (org.jwildfire.create.tina.animate.GlobalScript)1 GlobalScriptType (org.jwildfire.create.tina.animate.GlobalScriptType)1