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);
}
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();
}
Aggregations