Package org.jwildfire.create.tina.base.motion

Examples of org.jwildfire.create.tina.base.motion.MotionCurve


    boolean spinnerEnabled = false;
    boolean hasCurve = false;
    if (!pDisabled && isEnabled()) {
      controlEnabled = true;
      if (pPropertyName != null && pPropertyName.length() > 0) {
        MotionCurve curve = getCurveToEdit(pPropertyName);
        curveBtnEnabled = true;
        spinnerEnabled = !curve.isEnabled();
        hasCurve = curve.isEnabled();
      }
      else {
        curveBtnEnabled = false;
        spinnerEnabled = true;
      }
View Full Code Here


      Flame res = flameToPreview.makeCopy();
      res.setFrame(frameToPreview);
      switch (flamePreviewType) {
        case MOTION_CURVE:
          if (curveToPreviewPropertyPath != null) {
            MotionCurve curve = getMotionCurve(res, curveToPreviewPropertyPath);
            if (curve != null) {
              curve.setPoints(new int[] { frameToPreview }, new double[] { curveValueToPreview });
              curve.setInterpolation(Interpolation.LINEAR);
              curve.setEnabled(true);
            }
          }
          break;
        case COLOR_CURVE:
          if (curveToPreviewPropertyPath != null) {
            MotionCurve curve = getMotionCurve(res, curveToPreviewPropertyPath);
            if (curve != null) {
              curve.assignFromEnvelope(ctrl.getCurrEnvelope());
            }
          }
          break;
      }
      return res;
View Full Code Here

            fieldValue = null;
          }
          if (fieldValue != null) {
            if (fieldValue instanceof List && field.getName().equals(pathName) && index.length() > 0) {
              List<?> list = (List<?>) fieldValue;
              MotionCurve subResult = findMotionCurve(list.get(Integer.parseInt(index)), pPath, pPathIndex + 1);
              if (subResult != null) {
                return subResult;
              }
            }
            else if (fieldValue instanceof Map && field.getName().equals(pathName) && index.length() > 0) {
              Map<?, ?> map = (Map<?, ?>) fieldValue;
              MotionCurve subResult = findMotionCurve(map.get(index), pPath, pPathIndex + 1);
              if (subResult != null) {
                return subResult;
              }
            }
            else if (field.getName().equals(pathName)) {
              MotionCurve subResult = findMotionCurve(fieldValue, pPath, pPathIndex + 1);
              if (subResult != null) {
                return subResult;
              }
            }
          }
View Full Code Here

TOP

Related Classes of org.jwildfire.create.tina.base.motion.MotionCurve

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.