Search in sources :

Example 6 with FlamePropertyPath

use of org.jwildfire.create.tina.dance.model.FlamePropertyPath in project JWildfire by thargor6.

the class DefaultMotionCreator method addFinalXFormLink.

protected void addFinalXFormLink(PropertyModel pModel, Motion pMotion, Flame pFlame, int pLayerIdx, int pXFormIndex, String pPropname) {
    FlamePropertyPath path = new FlamePropertyPath(pFlame, AnimationModelService.createFinalXFormPropertyPath(pLayerIdx, pXFormIndex, pPropname));
    MotionLink link = new MotionLink(path);
    pMotion.getMotionLinks().add(link);
}
Also used : FlamePropertyPath(org.jwildfire.create.tina.dance.model.FlamePropertyPath)

Example 7 with FlamePropertyPath

use of org.jwildfire.create.tina.dance.model.FlamePropertyPath in project JWildfire by thargor6.

the class IFlamesController method paramPropertyPathTree_changed.

public void paramPropertyPathTree_changed() {
    if (noRefresh || getFlame() == null) {
        return;
    }
    boolean plainPropertySelected = flamePropertiesTreeService.isPlainPropertySelected(paramPropertyPathTree);
    String path;
    if (plainPropertySelected) {
        FlamePropertyPath selPath = flamePropertiesTreeService.getSelectedPropertyPath(paramPropertyPathTree);
        path = selPath.getPath();
    } else {
        path = null;
    }
    saveUndoPoint();
    switch(getCurrMutationIndex()) {
        case 0:
            getIFlamesFunc().getFlameParams(getCurrFlameIndex()).setFlameParam1(path);
            break;
        case 1:
            getIFlamesFunc().getFlameParams(getCurrFlameIndex()).setFlameParam2(path);
            break;
        case 2:
            getIFlamesFunc().getFlameParams(getCurrFlameIndex()).setFlameParam3(path);
            break;
        default:
            // nothing to do
            break;
    }
    refreshIFlame();
    enableControls();
}
Also used : FlamePropertyPath(org.jwildfire.create.tina.dance.model.FlamePropertyPath)

Aggregations

FlamePropertyPath (org.jwildfire.create.tina.dance.model.FlamePropertyPath)7 Motion (org.jwildfire.create.tina.dance.motion.Motion)2 ArrayList (java.util.ArrayList)1 Flame (org.jwildfire.create.tina.base.Flame)1 MotionLink (org.jwildfire.create.tina.dance.motion.MotionLink)1