Where is "Liquify Last Mesh.psp" stored on Mac?
I have this code which works on Windows for applying the last liquify mesh, but doesn't work on Mac. I believe it is because of the reference to the file "Liquify Last Mesh.psp". Does anyone know what the equivalent of this file would be on Mac/where it would be located? I would look, but I don't own a Mac, unfortunately.
function getOperatingSystem() {
var os = $.os.toLowerCase();
if (os.indexOf("windows") >= 0) {
return "Windows";
} else if (os.indexOf("mac") >= 0) {
return "macOS";
} else {
return "Unknown OS";
}
}
// APPLY LIQUIFY TO CURRENT LAYER
function applyLiquify() {
var dialogMode = DialogModes.NO;
var idLqFy = charIDToTypeID( "LqFy" );
var applyLiquify_d = new ActionDescriptor();
var currOs = getOperatingSystem();
if (currOs === "Windows") {
applyLiquify_d.putString(charIDToTypeID("LqMD"), app.preferencesFolder.fsName + "\\" + "Liquify Last Mesh.psp");
} else {
// unknown OS or Mac version
applyLiquify_d.putString(charIDToTypeID("LqMD"), app.preferencesFolder.fsName + "/" + "Liquify Last Mesh.psp");
}
try {
app.executeAction(idLqFy, applyLiquify_d, dialogMode);
return true;
} catch (e) {
alert("applyLiquify" + e + " " + e.line);
}
return false;
}
